gcc: Fix building on 32-bit Glibc 2.16
http://hydra.nixos.org/build/3046633
This commit is contained in:
parent
5833b2ee30
commit
6d27c9d5c3
@ -51,7 +51,10 @@ let version = "4.6.3";
|
|||||||
# Whether building a cross-compiler for GNU/Hurd.
|
# Whether building a cross-compiler for GNU/Hurd.
|
||||||
crossGNU = cross != null && cross.config == "i586-pc-gnu";
|
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 (cross != null) ./libstdc++-target.patch
|
||||||
++ optional noSysDirs ./no-sys-dirs.patch
|
++ optional noSysDirs ./no-sys-dirs.patch
|
||||||
# The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its
|
# The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its
|
||||||
|
16
pkgs/development/compilers/gcc/4.6/siginfo_t_fix.patch
Normal file
16
pkgs/development/compilers/gcc/4.6/siginfo_t_fix.patch
Normal 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.
|
Loading…
Reference in New Issue
Block a user