From 9bfe138087ebc1d2439aeb252b6b26e347ad9759 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Sun, 4 Aug 2024 11:38:28 +0800 Subject: [PATCH] greenhills: fix the unknow build options warning CC: symtab_apps.c ccarm: Warning: Unknown option "-fno-lto" passed to linker ccarm: Warning: Unknown option "-fno-builtin" ignored. Did you mean "-fno-common"? Signed-off-by: guoshichao --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 4da8a1528a..e25e679d7d 100644 --- a/Makefile +++ b/Makefile @@ -122,8 +122,13 @@ $(SYMTABSRC): $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_all) $(Q) $(APPDIR)$(DELIM)tools$(DELIM)mksymtab.sh $(BINDIR) >$@.tmp $(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@) +ifneq ($(CONFIG_ARM_TOOLCHAIN_GHS),y) $(SYMTABOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@, -fno-lto -fno-builtin) +else +$(SYMTABOBJ): %$(OBJEXT): %.c + $(call COMPILE, $<, $@, -Onolink) +endif $(BIN): $(SYMTABOBJ) $(call ARLOCK, $(call CONVERT_PATH,$(BIN)), $^)