Skip to content

Commit

Permalink
greenhills: fix the unknow build options warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
guoshichao authored and anchao committed Aug 18, 2024
1 parent a6094d8 commit 9bfe138
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)), $^)
Expand Down

0 comments on commit 9bfe138

Please sign in to comment.