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:
parent
68aab269fa
commit
5971121009
|
@ -69,9 +69,7 @@ fi
|
||||||
|
|
||||||
rm -rf .$$.tmp
|
rm -rf .$$.tmp
|
||||||
|
|
||||||
$CC -Wl,--help | awk '{for (i=1;i<=NF;i++) if ($i ~ /build-id/){n++} }; END {exit n}'
|
if $CC -Wl,--help | grep -q build-id; then
|
||||||
build_id=$?
|
|
||||||
if [ $build_id -ge 1 ] ; then
|
|
||||||
EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"
|
EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue