aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-08-18 08:00:09 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-08-18 08:00:09 +1000
commit8ec792b604481fb02ffc5c41bd02e74cffda9b1d (patch)
tree799d544968617a57b66cf684dff2da76e7b77870 /Makefile.main
parentf8ee4092d4b5d23033bf699d1c3a9aa82965fbc5 (diff)
downloadskiboot-8ec792b604481fb02ffc5c41bd02e74cffda9b1d.zip
skiboot-8ec792b604481fb02ffc5c41bd02e74cffda9b1d.tar.gz
skiboot-8ec792b604481fb02ffc5c41bd02e74cffda9b1d.tar.bz2
Fix try-cflag makefile foo for ancient GCC (e.g. 4.4 shipped with RHEL6)
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main
index 0441294..56ec139 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -18,7 +18,7 @@ try = $(shell set -e; if ($(1)) >/dev/null 2>&1; \
then echo "$(2)"; \
else echo "$(3)"; fi )
-try-cflag = $(call try,$(1) $(2) -c /dev/null -o /dev/null,$(2))
+try-cflag = $(call try,$(1) $(2) -x c -c /dev/null -o /dev/null,$(2))
# Base warnings
CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \