mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
gcc42: fix build via a patch from arch
This commit is contained in:
parent
3e208067ea
commit
4c62d0d144
@ -30,11 +30,11 @@ stdenv.mkDerivation {
|
||||
url = "mirror://gnu/gcc/gcc-${version}/gcc-fortran-${version}.tar.bz2";
|
||||
sha256 = "013yqiqhdavgxzjryvylgf3lcnknmw89fx41jf2v4899srn0bhkg";
|
||||
});
|
||||
|
||||
|
||||
patches =
|
||||
[./pass-cxxcpp.patch]
|
||||
[./pass-cxxcpp.patch ./siginfo_t.patch]
|
||||
++ optional noSysDirs [./no-sys-dirs.patch];
|
||||
|
||||
|
||||
inherit noSysDirs profiledCompiler staticCompiler;
|
||||
|
||||
buildInputs = [gmp mpfr texinfo];
|
||||
|
15
pkgs/development/compilers/gcc/4.2/siginfo_t.patch
Normal file
15
pkgs/development/compilers/gcc/4.2/siginfo_t.patch
Normal file
@ -0,0 +1,15 @@
|
||||
https://bbs.archlinux.org/viewtopic.php?id=144949
|
||||
--- 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