diff options
author | Nicolas Thill <nico@openwrt.org> | 2009-02-02 19:23:56 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2009-02-02 19:23:56 +0000 |
commit | 982542d3cd60660f6d0082a36c3cd7b38c47c81c (patch) | |
tree | edd953867de94ebd2fc4b2d456461d728b5702bb /toolchain | |
parent | 8cea02b5a8bda7a4c9694502acae90ecce8c5352 (diff) | |
download | upstream-982542d3cd60660f6d0082a36c3cd7b38c47c81c.tar.gz upstream-982542d3cd60660f6d0082a36c3cd7b38c47c81c.tar.bz2 upstream-982542d3cd60660f6d0082a36c3cd7b38c47c81c.zip |
[toolchain] gcc: add a patch to allow 3.4.6 to build for x86 (closes: #4548)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14370 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/gcc/patches/3.4.6/820-i386_inhibit_libc.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/3.4.6/820-i386_inhibit_libc.patch b/toolchain/gcc/patches/3.4.6/820-i386_inhibit_libc.patch new file mode 100644 index 0000000000..beb569f777 --- /dev/null +++ b/toolchain/gcc/patches/3.4.6/820-i386_inhibit_libc.patch @@ -0,0 +1,17 @@ +--- a/gcc/config/i386/linux.h ++++ b/gcc/config/i386/linux.h +@@ -218,6 +218,8 @@ Boston, MA 02111-1307, USA. */ + /* Do code reading to identify a signal frame, and set the frame + state data appropriately. See unwind-dw2.c for the structs. */ + ++#ifndef inhibit_libc ++ + #ifdef IN_LIBGCC2 + /* There's no sys/ucontext.h for some (all?) libc1, so no + signal-turned-exceptions for them. There's also no configure-run for +@@ -282,3 +284,5 @@ Boston, MA 02111-1307, USA. */ + } while (0) + #endif /* not USE_GNULIBC_1 */ + #endif /* IN_LIBGCC2 */ ++ ++#endif /* !inhibit_libc */ |