Kernel - Added $(LIBGCC_PATH) to allow libgcc to be last in link
authorJohn Hodge <[email protected]>
Fri, 3 Aug 2012 05:39:30 +0000 (13:39 +0800)
committerJohn Hodge <[email protected]>
Fri, 3 Aug 2012 05:39:30 +0000 (13:39 +0800)
KernelLand/Kernel/Makefile

index 40fb4a1..7ea0786 100644 (file)
@@ -100,7 +100,7 @@ apidoc:
 # - Does whatever architecture defined rules
 $(BIN): $(OBJ) $(MODS) arch/$(ARCHDIR)/link.ld Makefile ../../BuildConf/$(ARCH)/Makefile.cfg ../../BuildConf/$(ARCH)/$(PLATFORM).mk
        @echo --- LD -o $(BIN)
-       @$(LD) $(LDFLAGS) -o $(BIN) $(OBJ) $(MODS) --defsym __buildnum=$$(( $(BUILD_NUM) + 1 )) -Map ../Map.$(ARCH).txt
+       @$(LD) $(LDFLAGS) -o $(BIN) $(OBJ) $(MODS) $(LIBGCC_PATH) --defsym __buildnum=$$(( $(BUILD_NUM) + 1 )) -Map ../Map.$(ARCH).txt
        @$(DISASM) -S $(BIN) > $(BIN).dsm
        @echo BUILD_NUM = $$(( $(BUILD_NUM) + 1 )) > Makefile.BuildNum.$(ARCH)
        $(POSTBUILD)

UCC git Repository :: git.ucc.asn.au