* 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:
Eelco Dolstra 2006-10-18 11:25:10 +00:00
parent e643730bbf
commit b131d474c7
3 changed files with 9 additions and 17 deletions

View file

@ -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

View file

@ -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];
}

View file

@ -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.