diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-02 10:42:41 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-02 10:42:41 +0000 |
commit | 89b53fa171d6fff642482f21fc967dc29707e809 (patch) | |
tree | ce4622a0ae6855e9ec32c84a8e0fb60f5b302ecb | |
parent | 8813e1654c45a24c07bb756b4565d96132075262 (diff) | |
download | ChibiOS-89b53fa171d6fff642482f21fc967dc29707e809.tar.gz ChibiOS-89b53fa171d6fff642482f21fc967dc29707e809.tar.bz2 ChibiOS-89b53fa171d6fff642482f21fc967dc29707e809.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5528 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/ports/GCC/PPC/rules.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/os/ports/GCC/PPC/rules.mk b/os/ports/GCC/PPC/rules.mk index 443eee92c..4b765c5b7 100644 --- a/os/ports/GCC/PPC/rules.mk +++ b/os/ports/GCC/PPC/rules.mk @@ -62,10 +62,16 @@ ASXFLAGS = $(MCFLAGS) -Wa,-amhls=$(LSTDIR)/$(notdir $(<:.S=.lst)) $(ADEFS) CFLAGS = $(MCFLAGS) $(OPT) $(COPT) $(CWARN) -Wa,-alms=$(LSTDIR)/$(notdir $(<:.c=.lst)) $(DEFS)
CPPFLAGS = $(MCFLAGS) $(OPT) $(CPPOPT) $(CPPWARN) -Wa,-alms=$(LSTDIR)/$(notdir $(<:.cpp=.lst)) $(DEFS)
ifeq ($(USE_LINK_GC),yes)
- LDFLAGS = $(MCFLAGS) -nostartfiles -T$(LDSCRIPT) -Wl,-Map=$(BUILDDIR)/$(PROJECT).map,--cref,--no-warn-mismatch,--gc-sections,$(USE_LDOPT) $(LLIBDIR)
+GCLDFLAGS = ,--gc-sections
else
- LDFLAGS = $(MCFLAGS) -nostartfiles -T$(LDSCRIPT) -Wl,-Map=$(BUILDDIR)/$(PROJECT).map,--cref,--no-warn-mismatch,$(USE_LDOPT) $(LLIBDIR)
+GCLDFLAGS =
endif
+ifneq ($(USE_LDOPT),)
+XLDFLAGS =,$(USE_LDOPT)
+else
+XLDFLAGS =
+endif
+LDFLAGS = $(MCFLAGS) -nostartfiles -T$(LDSCRIPT) -Wl,-Map=$(BUILDDIR)/$(PROJECT).map,--cref,--no-warn-mismatch$(GCLDFLAGS)$(XLDFLAGS) $(LLIBDIR)
# Generate dependency information
CFLAGS += -MD -MP -MF .dep/$(@F).d
|