diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-03-25 12:14:28 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-03-25 12:20:15 -0400 |
commit | d5cc74ebd86a753547349cefcea3ed552e94c5dd (patch) | |
tree | 2e30b4213709cccd315dd50a285e96831a9fa4ac /tools | |
parent | d121aa3fe85ba5205b605088d80e70da668b45c0 (diff) |
build: Get rid of suplerflous '-Os' references in linker calls
We should be using global optimization flags, and -Os is already our
default.
Change-Id: Iaba511b2b4fa2ee0f1eb1ad28024be954f4c5f03
Diffstat (limited to 'tools')
-rw-r--r-- | tools/root.make | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/root.make b/tools/root.make index 296ca849de..2c6c8474e7 100644 --- a/tools/root.make +++ b/tools/root.make @@ -260,7 +260,7 @@ $(LINKROM): $(ROMLDS) # Note: make sure -Wl,--gc-sections comes before -T in the linker options. # Having the latter first caused crashes on (at least) mini2g. $(BUILDDIR)/rockbox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $$(LINKRAM) - $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \ + $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -nostdlib -o $@ $(OBJ) \ -L$(BUILDDIR)/firmware \ -L$(RBCODEC_BLD)/codecs $(call a2lnk, $(VOICESPEEXLIB)) \ -L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) \ @@ -268,7 +268,7 @@ $(BUILDDIR)/rockbox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $$(LI -Wl,-Map,$(BUILDDIR)/rockbox.map $(BUILDDIR)/rombox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $$(LINKROM) - $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \ + $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -nostdlib -o $@ $(OBJ) \ -L$(BUILDDIR)/firmware \ -L$(RBCODEC_BLD)/codecs $(call a2lnk, $(VOICESPEEXLIB)) \ -L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) \ |