Capture output from 'ld --help', in order that the test
becomes meaningful. The linker puts help texts on stderr.
Signed-off-by: Mats Erik Andersson <[EMAIL PROTECTED]>
---
Index: targets/buildtarget
===================================================================
--- targets/buildtarget (revision 3531)
+++ targets/buildtarget (arbetskopia)
@@ -69,7 +69,7 @@
rm -rf .$$.tmp
-if $CC -Wl,--help | grep -q build-id; then
+if $CC -Wl,--help 2>&1 | grep -q build-id; then
EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"
fi
--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot