mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
simulator: fix missing Werror option + eliminate lib duplicate
configure: Ensure Werror option doesn't get lost when simcc resets GCCOPTS uisimulator.make: Remove ignored duplicate SIMLIB on Darwin codecs.make: Eliminate some redundancy Change-Id: Ieee6f677fd22666cb58aa6fe53eabdc0b0f8c190
This commit is contained in:
parent
0bb79dd847
commit
a86b1999d0
3 changed files with 8 additions and 8 deletions
|
@ -26,16 +26,15 @@ CODECFLAGS := $(CFLAGS) $(RBCODEC_CFLAGS) -fstrict-aliasing \
|
|||
-I$(RBCODECLIB_DIR)/codecs -I$(RBCODECLIB_DIR)/codecs/lib -DCODEC
|
||||
|
||||
ifdef APP_TYPE
|
||||
ifeq ($(UNAME), Darwin)
|
||||
CODECLDFLAGS = $(SHARED_LDFLAGS) -Wl,-map,$(CODECDIR)/$*.map
|
||||
else
|
||||
CODECLDFLAGS = $(SHARED_LDFLAGS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map
|
||||
CODECLDFLAGS = $(SHARED_LDFLAGS)
|
||||
ifneq ($(UNAME), Darwin)
|
||||
CODECLDFLAGS += -Wl,--gc-sections
|
||||
endif
|
||||
CODECFLAGS += $(SHARED_CFLAGS) # <-- from Makefile
|
||||
else
|
||||
CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map
|
||||
CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections
|
||||
endif
|
||||
CODECLDFLAGS += $(GLOBAL_LDOPTS)
|
||||
CODECLDFLAGS += -Wl,$(LDMAP_OPT),$(CODECDIR)/$*.map $(GLOBAL_LDOPTS)
|
||||
|
||||
ifdef USE_LTO
|
||||
CODECLDFLAGS += -fno-builtin -ffreestanding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue