summary refs log tree commit diff
path: root/pkgs/build-support/gcc-cross-wrapper/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/gcc-cross-wrapper/builder.sh')
-rw-r--r--pkgs/build-support/gcc-cross-wrapper/builder.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/gcc-cross-wrapper/builder.sh b/pkgs/build-support/gcc-cross-wrapper/builder.sh
index aaf52cd7745..86d18ced54e 100644
--- a/pkgs/build-support/gcc-cross-wrapper/builder.sh
+++ b/pkgs/build-support/gcc-cross-wrapper/builder.sh
@@ -7,8 +7,8 @@ cflagsCompile="-B$out/bin/"
 if test -z "$nativeLibc"; then
     cflagsCompile="$cflagsCompile -B$libc/lib/ -isystem $libc/include"
     ldflags="$ldflags -L$libc/lib"
-    ldflagsBefore="-dynamic-linker $libc/lib/ld-linux.so.?"
-    #ldflagsBefore="-dynamic-linker $libc/lib/ld-uClibc.so.0"
+    dlinker=`eval 'echo $libc/lib/ld-*.so.?'`
+    ldflagsBefore="-dynamic-linker $dlinker"
 fi
 
 if test -n "$nativeTools"; then