aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-01-02 13:59:49 -0800
committerAnup Patel <anup@brainfault.org>2019-01-04 08:20:50 +0530
commit5cbc24b95a541dba3f2b842b54d76435ba4566a7 (patch)
tree7c43ffcc8aa9f2eb1a0e5995aab276099e470ebf /Makefile
parenteeab92f2423ef907629f784658663baf66b5df78 (diff)
downloadopensbi-5cbc24b95a541dba3f2b842b54d76435ba4566a7.zip
opensbi-5cbc24b95a541dba3f2b842b54d76435ba4566a7.tar.gz
opensbi-5cbc24b95a541dba3f2b842b54d76435ba4566a7.tar.bz2
Makefile: Force GCC to preprocess the linker file
To avoid this message (and subsequent errors): warning: linker input file unused because linking not done force GCC to treat the linker script preprocessing as a C file. Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fd3ed44..139ca46 100644
--- a/Makefile
+++ b/Makefile
@@ -165,7 +165,7 @@ inst_header_dir = $(CMD_PREFIX)mkdir -p $(1); \
cp -rf $(2) $(1)
compile_cpp = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
echo " CPP $(subst $(build_dir)/,,$(1))"; \
- $(CPP) $(CPPFLAGS) $(2) | grep -v "\#" > $(1)
+ $(CPP) $(CPPFLAGS) -x c $(2) | grep -v "\#" > $(1)
compile_cc_dep = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \
echo " CC-DEP $(subst $(build_dir)/,,$(1))"; \
echo -n `dirname $(1)`/ > $(1) && \