diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-01-03 00:59:49 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-04 05:50:50 +0300 |
commit | 5cbc24b95a541dba3f2b842b54d76435ba4566a7 (patch) | |
tree | 7c43ffcc8aa9f2eb1a0e5995aab276099e470ebf /Makefile | |
parent | eeab92f2423ef907629f784658663baf66b5df78 (diff) | |
download | opensbi-5cbc24b95a541dba3f2b842b54d76435ba4566a7.tar.xz |
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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) && \ |