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
This commit is contained in:
Ed Swierk 2008-04-18 20:47:11 +00:00
parent 8d0a12ac7c
commit 68aab269fa
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ fi
rm -rf .$$.tmp 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=$? build_id=$?
if [ $build_id -ge 1 ] ; then if [ $build_id -ge 1 ] ; then
EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none" EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"