summaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
Diffstat (limited to 'targets')
-rwxr-xr-xtargets/buildtarget2
1 files changed, 1 insertions, 1 deletions
diff --git a/targets/buildtarget b/targets/buildtarget
index 86d0ee229d..ae50d73279 100755
--- a/targets/buildtarget
+++ b/targets/buildtarget
@@ -69,7 +69,7 @@ fi
rm -rf .$$.tmp
-ld --help | awk '{for (i=1;i<=NF;i++) if ($i ~ /build-id/){n++} }; END {exit n}'
+$CC -Wl,--help | awk '{for (i=1;i<=NF;i++) if ($i ~ /build-id/){n++} }; END {exit n}'
build_id=$?
if [ $build_id -ge 1 ] ; then
EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"