* dietlibc: symlink "lib" to "lib-*", and symlink "crt1.o" to
"start.o" to make it easier to use dietlibc as a drop-in replacement for glibc. svn path=/nixpkgs/trunk/; revision=6759
This commit is contained in:
parent
e643730bbf
commit
b131d474c7
@ -1,11 +1,12 @@
|
||||
source $stdenv/setup
|
||||
|
||||
preBuild() {
|
||||
kernelhash=$(ls $kernel/lib/modules)
|
||||
echo $kernelhash
|
||||
ln -s $kernel/lib/modules/$kernelhash/build linux
|
||||
makeFlags="prefix=$out"
|
||||
installFlags="prefix=$out"
|
||||
|
||||
postInstall=postInstall
|
||||
postInstall() {
|
||||
(cd $out && ln -s lib-* lib)
|
||||
(cd $out/lib && ln -s start.o crt1.o)
|
||||
}
|
||||
|
||||
preBuild=preBuild
|
||||
|
||||
genericBuild
|
||||
|
@ -8,5 +8,6 @@ stdenv.mkDerivation {
|
||||
url = http://nix.cs.uu.nl/dist/tarballs/dietlibc-0.30.tar.bz2;
|
||||
md5 = "2465d652fff6f1fad3da3b98e60e83c9";
|
||||
};
|
||||
patches = [./dietlibc-install.patch];
|
||||
builder = ./builder.sh;
|
||||
# patches = [./dietlibc-install.patch];
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
diff -ruN dietlibc-0.29/Makefile dietlibc-0.29.new/Makefile
|
||||
--- dietlibc-0.29/Makefile 2005-05-18 16:38:55.000000000 +0200
|
||||
+++ dietlibc-0.29.new/Makefile 2005-08-28 01:02:50.000000000 +0200
|
||||
@@ -1,5 +1,5 @@
|
||||
INSTALL=install
|
||||
-prefix?=/opt/diet
|
||||
+prefix?=${out}
|
||||
# Set the following to install to a different root
|
||||
#DESTDIR=/tmp/fefix
|
||||
# Use "make DEBUG=1" to compile a debug version.
|
Loading…
Reference in New Issue
Block a user