* Patched gcc so that it doesn't search the standard include directories

(/usr/include, /usr/local/include, etc.).

* Immediate pay-off: we see that the glibc header files depend on the Linux
  kernel header files.  So I've added a package that extracts the appropriate
  headers from Linux 2.4.22.

svn path=/nixpkgs/trunk/; revision=361
This commit is contained in:
Eelco Dolstra
2003-08-26 15:25:26 +00:00
parent 3638af3cab
commit e83fe5ee78
7 changed files with 52 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
#! /bin/sh
. $stdenv/setup || exit 1
mkdir $out || exit 1
cd $out || exit 1
tar xvfj $src 'linux-*/include/linux' 'linux-*/include/asm-i386' || exit 1
mv linux-*/include . || exit 1
rmdir linux-* || exit 1
cd include || exit 1
ln -s asm-i386 asm || exit 1
+13
View File
@@ -0,0 +1,13 @@
Package(
[ ("name", "linux-headers-2.4.22-i386")
, ("build", Relative("linux-headers/linux-headers-build.sh"))
, ("src", Call(IncludeFix("fetchurl/fetchurl.fix"),
[ ("url", "ftp://ftp.nl.kernel.org/pub/linux/kernel/v2.4/linux-2.4.22.tar.bz2")
, ("md5", "75dc85149b06ac9432106b8941eb9f7b")
]))
, ("stdenv", IncludeFix("stdenv-linux/stdenv-nativetools.fix"))
]
)