aboutsummaryrefslogtreecommitdiffstats
path: root/core/gcc/pt_gnu_eh_frame.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-11-18 12:25:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-11-18 12:25:04 +0000
commita64d8d26b6f9c1fc3c97605c802bb4ed185dc3bf (patch)
treed2d2806dba358624acfc7175c3bc4d6dbdca4857 /core/gcc/pt_gnu_eh_frame.patch
parentfc2f197480ac9258a19813d0e9190eec0d7058a3 (diff)
downloadaports-a64d8d26b6f9c1fc3c97605c802bb4ed185dc3bf.tar.bz2
aports-a64d8d26b6f9c1fc3c97605c802bb4ed185dc3bf.tar.xz
core/gcc: hack to not link all built programs to libgcc.
Diffstat (limited to 'core/gcc/pt_gnu_eh_frame.patch')
-rw-r--r--core/gcc/pt_gnu_eh_frame.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/gcc/pt_gnu_eh_frame.patch b/core/gcc/pt_gnu_eh_frame.patch
new file mode 100644
index 0000000000..3e029104aa
--- /dev/null
+++ b/core/gcc/pt_gnu_eh_frame.patch
@@ -0,0 +1,12 @@
+--- gcc-4.3.2/gcc/crtstuff.c.orig Mon Nov 17 16:02:38 2008
++++ gcc-4.3.2/gcc/crtstuff.c Mon Nov 17 16:02:52 2008
+@@ -94,8 +94,7 @@
+ #include <link.h>
+ /* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its link.h.
+ But it doesn't use PT_GNU_EH_FRAME ELF segment currently. */
+-# if !defined(__UCLIBC__) \
+- && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
++# if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
+ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+ # define USE_PT_GNU_EH_FRAME
+ # endif