patch-Rules_mak 1.0 KB

123456789101112131415161718192021222324252627282930
  1. --- uClibc++-0.2.4.orig/Rules.mak 2012-05-25 23:15:31.000000000 +0200
  2. +++ uClibc++-0.2.4/Rules.mak 2015-10-14 18:06:07.000000000 +0200
  3. @@ -79,9 +79,6 @@ check_gcc=$(shell if $(CC) $(1) -S -o /d
  4. check_gxx_visibility=$(shell if $(CXX) -fvisibility-inlines-hidden -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1; \
  5. then echo "-DGCC_HASCLASSVISIBILITY"; fi)
  6. -check_as_needed=$(shell if $(LD) --help | grep -q 'as-needed' ; \
  7. - then echo "-Wl,--as-needed -lgcc_s -Wl,--no-as-needed"; else echo "-lgcc_s"; fi)
  8. -
  9. # strip quotes
  10. qstrip = $(strip $(subst ",,$(1)))
  11. #"))
  12. @@ -107,7 +104,7 @@ CPU_CFLAGS=$(call qstrip,$(CPU_CFLAGS-y)
  13. # Some nice CFLAGS to work with
  14. GEN_CFLAGS:=-fno-builtin
  15. -CFLAGS:=$(XWARNINGS) $(CPU_CFLAGS) -ansi
  16. +CFLAGS:=$(XWARNINGS) $(CPU_CFLAGS)
  17. LDFLAGS:=-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,defs
  18. @@ -145,7 +142,7 @@ endif
  19. ifneq ($(IMPORT_LIBSUP),y)
  20. GEN_LIBS += -lsupc++
  21. endif
  22. -GEN_LIBS += -lc -lgcc
  23. +GEN_LIBS += -lc -lgcc -lgcc_s
  24. LIBS := $(GEN_LIBS)
  25. STATIC_LIBS := $(GEN_LIBS)