* 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:
Executable
+11
@@ -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
|
||||
@@ -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"))
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user