From 59711210093b028a69e3292a2558a5c40339c5d2 Mon Sep 17 00:00:00 2001 From: Ed Swierk Date: Fri, 18 Apr 2008 20:48:22 +0000 Subject: Replace buildtarget's check for --build-id with something a bit less awkward (pun intended). Signed-off-by: Ed Swierk Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3243 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- targets/buildtarget | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'targets') diff --git a/targets/buildtarget b/targets/buildtarget index ae50d73279..2b3b83bfce 100755 --- a/targets/buildtarget +++ b/targets/buildtarget @@ -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 -- cgit v1.2.3