diff options
author | Marc Karasek <marc.karasek@sun.com> | 2008-01-22 16:09:36 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2008-01-22 16:09:36 +0000 |
commit | 14a3af111d5fa6bd72dc1cb4e457f70f23ce507b (patch) | |
tree | edcc04139de8864fe47e7e0aeeaf4368260144a0 /targets/buildtarget | |
parent | bb9c1aa54e8167cdcef6b633f55021c4b85ac194 (diff) | |
download | coreboot-14a3af111d5fa6bd72dc1cb4e457f70f23ce507b.tar.xz |
Use "--build-id=none" as linker flags if build-id is supported.
That fixes a compilation failure.
Signed-off-by: Marc Karasek <marc.karasek@sun.com>
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Joseph Smith <joe@smittys.pointclark.net>
Acked-by: Myles Watson <myles@pel.cs.byu.edu>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3073 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'targets/buildtarget')
-rwxr-xr-x | targets/buildtarget | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/targets/buildtarget b/targets/buildtarget index f1a1a5a8df..04ae5ebe32 100755 --- a/targets/buildtarget +++ b/targets/buildtarget @@ -69,9 +69,16 @@ fi rm -rf .$$.tmp +ld --help | awk '{for (i=1;i<=NF;i++) if ($i ~ /build-id/){n++} }; END {exit n}' +build_id=$? +if [ $build_id -ge 1 ] ; then + EXTRA_LFLAGS+=" -Wl,--build-id=none" +fi + for i in $build_dir/Makefile.settings $build_dir/*/Makefile.settings do - echo CFLAGS+=$EXTRA_CFLAGS >>$i + echo DISTRO_CFLAGS+=$EXTRA_CFLAGS >>$i + echo DISTRO_LFLAGS+=$EXTRA_LFLAGS >>$i done exit $? |