Fixing the gcc-cross-wrapper (wanting to make it work with uclibc, I had

broken it for glibc).
Now I tested that it works for both.

svn path=/nixpkgs/trunk/; revision=20519
This commit is contained in:
Lluís Batlle i Rossell 2010-03-10 09:15:20 +00:00
parent 12e960f592
commit 8c2af71a0f

View file

@ -7,8 +7,11 @@ cflagsCompile="-B$out/bin/"
if test -z "$nativeLibc"; then
cflagsCompile="$cflagsCompile -B$libc/lib/ -isystem $libc/include"
ldflags="$ldflags -L$libc/lib"
# Get the proper dynamic linker for glibc and uclibc.
dlinker=`eval 'echo $libc/lib/ld-*.so.?'`
ldflagsBefore="-dynamic-linker $dlinker"
if [ -n "$dlinker" ]; then
ldflagsBefore="-dynamic-linker $dlinker"
fi
fi
if test -n "$nativeTools"; then