Fixing the paths of uclibc libpthread

svn path=/nixpkgs/trunk/; revision=34229
This commit is contained in:
Lluís Batlle i Rossell 2012-05-24 21:44:34 +00:00
parent 3729f9ce5e
commit 1402a2ebc3

View File

@ -84,7 +84,8 @@ stdenv.mkDerivation {
mkdir -p $out
make PREFIX=$out VERBOSE=1 install ${crossMakeFlag}
(cd $out/include && ln -s $(ls -d ${linuxHeaders}/include/* | grep -v "scsi$") .)
sed -i s@/lib/@$out/lib/@g $out/lib/libc.so
# libpthread.so may not exist, so I do || true
sed -i s@/lib/@$out/lib/@g $out/lib/libc.so $out/lib/libpthread.so || true
'';
passthru = {