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
This commit is contained in:
committed by
Carl-Daniel Hailfinger
parent
bb9c1aa54e
commit
14a3af111d
@@ -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 $?
|
||||
|
Reference in New Issue
Block a user