summaryrefslogtreecommitdiff
path: root/package/uclibc++/patches/patch-Rules_mak
diff options
context:
space:
mode:
Diffstat (limited to 'package/uclibc++/patches/patch-Rules_mak')
-rw-r--r--package/uclibc++/patches/patch-Rules_mak12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/uclibc++/patches/patch-Rules_mak b/package/uclibc++/patches/patch-Rules_mak
new file mode 100644
index 000000000..228483825
--- /dev/null
+++ b/package/uclibc++/patches/patch-Rules_mak
@@ -0,0 +1,12 @@
+--- uClibc++-0.2.4.orig/Rules.mak 2012-05-25 23:15:31.000000000 +0200
++++ uClibc++-0.2.4/Rules.mak 2014-05-26 16:20:39.000000000 +0200
+@@ -79,9 +79,6 @@ check_gcc=$(shell if $(CC) $(1) -S -o /d
+ check_gxx_visibility=$(shell if $(CXX) -fvisibility-inlines-hidden -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1; \
+ then echo "-DGCC_HASCLASSVISIBILITY"; fi)
+
+-check_as_needed=$(shell if $(LD) --help | grep -q 'as-needed' ; \
+- then echo "-Wl,--as-needed -lgcc_s -Wl,--no-as-needed"; else echo "-lgcc_s"; fi)
+-
+ # strip quotes
+ qstrip = $(strip $(subst ",,$(1)))
+ #"))