summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Swierk <eswierk@arastra.com>2008-04-18 20:47:11 +0000
committerEd Swierk <eswierk@arastra.com>2008-04-18 20:47:11 +0000
commit68aab269fafb8cd1a64fd0acbd33c9cdcf633829 (patch)
tree9304de5ecd8f03f7dc7fa8748566a4ca62d77428
parent8d0a12ac7c69ee6222de955491e3b0a5818a6469 (diff)
Alter buildtarget to invoke the cross-compiler when
checking for --build-id, if the user has specified one by setting CC in the environment; there's no point in checking the native linker in this case. Signed-off-by: Ed Swierk <eswierk@arastra.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3242 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-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"