Replace buildtarget's check for --build-id with something

a bit less awkward (pun intended).

Signed-off-by: Ed Swierk <eswierk@arastra.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3243 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ed Swierk 2008-04-18 20:48:22 +00:00
parent 68aab269fa
commit 5971121009
1 changed files with 1 additions and 3 deletions

View File

@ -69,9 +69,7 @@ fi
rm -rf .$$.tmp
$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
if $CC -Wl,--help | grep -q build-id; then
EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"
fi