summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-28 21:30:17 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-28 21:30:17 +0100
commit2def26d561b14f0fd86486dd514819c7d9c743b2 (patch)
treef5f7d1aa778a8f12b35e95df8db2f67da0c47ebd
parentf05f4323f4ee4b85877ed86b01fdb93022dd9645 (diff)
Having ld optimizing isn't that much of a good idea actually.
-rw-r--r--target-rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-rules.mk b/target-rules.mk
index d40f573..3d73a5c 100644
--- a/target-rules.mk
+++ b/target-rules.mk
@@ -17,7 +17,7 @@ endif
$(TARGET_ELF): $(TARGET_OBJS) $(LIBDEPS) $(LDSCRIPT)
$(E) "[TL] Linking $@"
- $(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-O3 -Wl,-Map=$(TARGET_MAP) -o $@ $(TARGET_OBJS) -g -T$(LDSCRIPT) $(LIBS)
+ $(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-Map=$(TARGET_MAP) -o $@ $(TARGET_OBJS) $(TARGET_LDFLAGS) -g -T$(LDSCRIPT) $(LIBS)
$(TARGET_MAP): $(TARGET_ELF)