From 3f3636a4032de5360389785e6bc458cf6e1bc97e Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Mon, 28 Nov 2005 21:58:24 +0000 Subject: [PATCH] we need this patch (the famous "-Dinhibit_libc hack") to get stuff compiled properly svn path=/nixpkgs/trunk/; revision=4315 --- .../compilers/gcc-4.0-arm/gcc-inhibit.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pkgs/development/compilers/gcc-4.0-arm/gcc-inhibit.patch diff --git a/pkgs/development/compilers/gcc-4.0-arm/gcc-inhibit.patch b/pkgs/development/compilers/gcc-4.0-arm/gcc-inhibit.patch new file mode 100644 index 00000000000..423261cb227 --- /dev/null +++ b/pkgs/development/compilers/gcc-4.0-arm/gcc-inhibit.patch @@ -0,0 +1,12 @@ +diff -ruN gcc-4.0.2/gcc/Makefile.in gcc-4.0.2.new/gcc/Makefile.in +--- gcc-4.0.2/gcc/Makefile.in 2005-09-09 23:05:39.000000000 +0200 ++++ gcc-4.0.2.new/gcc/Makefile.in 2005-11-04 20:33:49.000000000 +0100 +@@ -745,7 +745,7 @@ + # IN_GCC distinguishes between code compiled into GCC itself and other + # programs built during a bootstrap. + # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler. +-INTERNAL_CFLAGS = -DIN_GCC @CROSS@ ++INTERNAL_CFLAGS = -DIN_GCC @CROSS@ -Dinhibit_libc -D__gthr_posix_h + + # This is the variable actually used when we compile. If you change this, + # you probably want to update BUILD_CFLAGS in configure.ac