aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/uclibc++/patches/003-no-fPIC.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/libs/uclibc++/patches/003-no-fPIC.patch')
-rw-r--r--package/libs/uclibc++/patches/003-no-fPIC.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/libs/uclibc++/patches/003-no-fPIC.patch b/package/libs/uclibc++/patches/003-no-fPIC.patch
new file mode 100644
index 0000000000..206a00de32
--- /dev/null
+++ b/package/libs/uclibc++/patches/003-no-fPIC.patch
@@ -0,0 +1,10 @@
+--- a/Rules.mak
++++ b/Rules.mak
+@@ -185,7 +185,6 @@ export UCLIBCXX_RUNTIME_PREFIX UCLIBCXX_RUNTIME_LIBDIR UCLIBCXX_RUNTIME_BINDIR U
+
+ WRAPPER = $(top_builddir)bin/g++-uc
+ OPTIMIZATION:=
+-PICFLAG:=-fPIC
+
+ # use '-Os' optimization if available, else use -O2, allow Config to override
+ $(eval $(call check-gcc-var,-Os))