diff options
author | Ed Swierk <eswierk@arastra.com> | 2008-04-18 20:48:22 +0000 |
---|---|---|
committer | Ed Swierk <eswierk@arastra.com> | 2008-04-18 20:48:22 +0000 |
commit | 59711210093b028a69e3292a2558a5c40339c5d2 (patch) | |
tree | 7491758de27fbaad55b15e05f5073b2c92d53622 /targets | |
parent | 68aab269fafb8cd1a64fd0acbd33c9cdcf633829 (diff) |
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
Diffstat (limited to 'targets')
-rwxr-xr-x | targets/buildtarget | 4 |
1 files changed, 1 insertions, 3 deletions
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 |