gcc: Fix building on 32-bit Glibc 2.16

http://hydra.nixos.org/build/3046633
This commit is contained in:
Eelco Dolstra 2012-09-21 10:53:56 -04:00
parent 5833b2ee30
commit 6d27c9d5c3
2 changed files with 20 additions and 1 deletions

View File

@ -51,7 +51,10 @@ let version = "4.6.3";
# Whether building a cross-compiler for GNU/Hurd.
crossGNU = cross != null && cross.config == "i586-pc-gnu";
patches = [ ]
patches =
[ # Fix building on Glibc 2.16.
./siginfo_t_fix.patch
]
++ optional (cross != null) ./libstdc++-target.patch
++ optional noSysDirs ./no-sys-dirs.patch
# The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its

View File

@ -0,0 +1,16 @@
From http://pastebin.com/VkgE27Pd
--- a/gcc/config/i386/linux-unwind.h 2011-01-03 20:52:22.000000000 +0000
+++ b/gcc/config/i386/linux-unwind.h 2012-07-06 12:23:51.562859470 +0100
@@ -133,9 +133,9 @@
{
struct rt_sigframe {
int sig;
- struct siginfo *pinfo;
+ siginfo_t *pinfo;
void *puc;
- struct siginfo info;
+ siginfo_t info;
struct ucontext uc;
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.