gcc/gcc-cross-wrapper: making gcc47 work with uclibc

It wants pthreads, and libpthreads wants libdl, and this can
only be found with -rpath-link when cross building.
This commit is contained in:
Lluís Batlle i Rossell
2012-12-26 22:00:33 +00:00
parent 2194b98565
commit 651734b619
2 changed files with 2 additions and 2 deletions
@@ -71,7 +71,7 @@ if test "$noSysDirs" = "1"; then
unset CPATH
if test -z "$crossStageStatic"; then
EXTRA_TARGET_CFLAGS="-B${libcCross}/lib -idirafter ${libcCross}/include"
EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib"
EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib -Wl,-rpath,${libcCross}/lib -Wl,-rpath-link,${libcCross}/lib"
fi
else
if test -z "$NIX_GCC_CROSS"; then