* Install a libbz2.so symlink. Otherwise, programs that link against
-lbz2 will get libbz2.a, which is generally not what we want. svn path=/nixpkgs/branches/stdenv-updates/; revision=14307
This commit is contained in:
parent
a6f044663b
commit
f468a5597a
@ -3,20 +3,18 @@ installFlags="PREFIX=$out"
|
|||||||
|
|
||||||
if test -n "$sharedLibrary"; then
|
if test -n "$sharedLibrary"; then
|
||||||
|
|
||||||
preBuild=preBuild
|
|
||||||
preBuild() {
|
preBuild() {
|
||||||
make -f Makefile-libbz2_so
|
make -f Makefile-libbz2_so
|
||||||
}
|
}
|
||||||
|
|
||||||
preInstall=preInstall
|
|
||||||
preInstall() {
|
preInstall() {
|
||||||
ensureDir $out/lib
|
ensureDir $out/lib
|
||||||
mv libbz2.so* $out/lib
|
mv libbz2.so* $out/lib
|
||||||
|
ln -s libbz2.so.1.0 $out/lib/libbz2.so
|
||||||
}
|
}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
postInstall=postInstall
|
|
||||||
postInstall() {
|
postInstall() {
|
||||||
rm $out/bin/bunzip2* $out/bin/bzcat*
|
rm $out/bin/bunzip2* $out/bin/bzcat*
|
||||||
ln -s bzip2 $out/bin/bunzip2
|
ln -s bzip2 $out/bin/bunzip2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user