summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2013-03-16 20:40:04 +0100
committerVladimír Čunát <vcunat@gmail.com>2013-03-16 20:40:04 +0100
commitdd25120e8ebcd19b002391a16c031131b49d9f53 (patch)
tree3214b20225a6a12d87ae2700e4562cb57b43940f /pkgs
parent192bdc79ae7edb405a0584257880c4472b88eaed (diff)
downloadnixlib-dd25120e8ebcd19b002391a16c031131b49d9f53.tar
nixlib-dd25120e8ebcd19b002391a16c031131b49d9f53.tar.gz
nixlib-dd25120e8ebcd19b002391a16c031131b49d9f53.tar.bz2
nixlib-dd25120e8ebcd19b002391a16c031131b49d9f53.tar.lz
nixlib-dd25120e8ebcd19b002391a16c031131b49d9f53.tar.xz
nixlib-dd25120e8ebcd19b002391a16c031131b49d9f53.tar.zst
nixlib-dd25120e8ebcd19b002391a16c031131b49d9f53.zip
gcc34: fix build on i686
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/compilers/gcc/3.4/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/3.4/default.nix b/pkgs/development/compilers/gcc/3.4/default.nix
index 6cadf58d2ce6..1595b7f336fe 100644
--- a/pkgs/development/compilers/gcc/3.4/default.nix
+++ b/pkgs/development/compilers/gcc/3.4/default.nix
@@ -15,7 +15,12 @@ stdenv.mkDerivation {
     md5 = "4a21ac777d4b5617283ce488b808da7b";
   };
 
-  patches = if noSysDirs then [./no-sys-dirs.patch] else [];
+  patches = stdenv.lib.optional noSysDirs ./no-sys-dirs.patch;
+
+  # inspiration: https://aur.archlinux.org/packages/g77/
+  postPatch = ''
+    substituteInPlace gcc/config/i386/linux.h --replace 'struct siginfo' siginfo_t
+  '';
 
   inherit noSysDirs profiledCompiler;