mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
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:
parent
12e960f592
commit
8c2af71a0f
@ -7,8 +7,11 @@ cflagsCompile="-B$out/bin/"
|
|||||||
if test -z "$nativeLibc"; then
|
if test -z "$nativeLibc"; then
|
||||||
cflagsCompile="$cflagsCompile -B$libc/lib/ -isystem $libc/include"
|
cflagsCompile="$cflagsCompile -B$libc/lib/ -isystem $libc/include"
|
||||||
ldflags="$ldflags -L$libc/lib"
|
ldflags="$ldflags -L$libc/lib"
|
||||||
|
# Get the proper dynamic linker for glibc and uclibc.
|
||||||
dlinker=`eval 'echo $libc/lib/ld-*.so.?'`
|
dlinker=`eval 'echo $libc/lib/ld-*.so.?'`
|
||||||
ldflagsBefore="-dynamic-linker $dlinker"
|
if [ -n "$dlinker" ]; then
|
||||||
|
ldflagsBefore="-dynamic-linker $dlinker"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$nativeTools"; then
|
if test -n "$nativeTools"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user