diff --git a/build.mk b/build.mk index 4d151a0..3d801a5 100644 --- a/build.mk +++ b/build.mk @@ -128,9 +128,9 @@ $(BINDIR)/$(LINK_TARGET): $(MAKEFILE_LIST) $(ALLOBJS) $(COMPONENT_LIBS) $(LIBS) $(LINKER_SCRIPT) | $(BINDIR)/ @echo "Linking ..." ifdef LINKER_SCRIPT - $(CC) $(LDFLAGS) -o $(BINDIR)/$(LINK_TARGET) -T$(LINKER_SCRIPT) $(ALLOBJS) $(COMPONENT_LIBS) $(LIBS) + $(CC) -o $(BINDIR)/$(LINK_TARGET) -T$(LINKER_SCRIPT) $(ALLOBJS) $(COMPONENT_LIBS) $(LIBS) $(LDFLAGS) else - $(CC) $(LDFLAGS) -o $(BINDIR)/$(LINK_TARGET) $(ALLOBJS) $(LIBS) + $(CC) -o $(BINDIR)/$(LINK_TARGET) $(ALLOBJS) $(LIBS) $(LDFLAGS) endif $(EMPTY_LINE) endif