projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use -mno-sse to prevent overzealous gcc optimizations
[coreboot.git]
/
util
/
xcompile
/
xcompile
diff --git
a/util/xcompile/xcompile
b/util/xcompile/xcompile
index 49263941dfa10d9d1ae47d884b661fa960f76ed1..f5d43d0e886bf79fb2846d6376feaed911b58e6f 100644
(file)
--- a/
util/xcompile/xcompile
+++ b/
util/xcompile/xcompile
@@
-84,6
+84,10
@@
testcc "$CC" "$CFLAGS-Wl,--build-id=none " && CFLAGS="$CFLAGS-Wl,--build-id=none
# now:
testcc "$CC" "$CFLAGS-Wno-unused-but-set-variable " && \
CFLAGS="$CFLAGS-Wno-unused-but-set-variable "
# now:
testcc "$CC" "$CFLAGS-Wno-unused-but-set-variable " && \
CFLAGS="$CFLAGS-Wno-unused-but-set-variable "
+# Use bfd linker instead of gold if available:
+testcc "$CC" "$CFLAGS-fuse-ld=bfd " && CFLAGS="$CFLAGS-fuse-ld=bfd " && LINKER_SUFFIX='.bfd'
+# Prevent SSE instructions sneaking in:
+testcc "$CC" "$CFLAGS-mno-sse " && CFLAGS="$CFLAGS-mno-sse "
if which gcc 2>/dev/null >/dev/null; then
HOSTCC=gcc
if which gcc 2>/dev/null >/dev/null; then
HOSTCC=gcc