Geode platforms that use a LPC Super I/O had the LPC serial IRQ set to all
[coreboot.git] / targets / buildtarget
index 86d0ee229d270deb9b33cc32420257237e47f0bb..2b3b83bfce02552f4e979cdec8e021dfe6da9a12 100755 (executable)
@@ -69,9 +69,7 @@ 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
+if $CC -Wl,--help | grep -q build-id; then
        EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"
 fi