* Add $pkg/lib64 (if it exists) to the library search path in addition

to $pkg/lib.

svn path=/nixpkgs/trunk/; revision=6820
This commit is contained in:
Eelco Dolstra 2006-10-24 13:50:21 +00:00
parent a6d3ed3074
commit 361cf08c59
2 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,9 @@ if test -n "$nativeTools"; then
gccPath="$nativePrefix/bin"
ldPath="$nativePrefix/bin"
else
if test -e "$gcc/lib64"; then
ldflags="$ldflags -L$gcc/lib64"
fi
ldflags="$ldflags -L$gcc/lib"
gccPath="$gcc/bin"
ldPath="$binutils/bin"

View File

@ -3,6 +3,10 @@ addCVars () {
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$1/include"
fi
if test -d $1/lib64; then
export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib64"
fi
if test -d $1/lib; then
export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib"
fi