* 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:
parent
a6d3ed3074
commit
361cf08c59
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user