From: John Hodge Date: Fri, 3 Aug 2012 05:39:30 +0000 (+0800) Subject: Kernel - Added $(LIBGCC_PATH) to allow libgcc to be last in link X-Git-Tag: rel0.15~706^2~74 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=142c9bc9ac2e4402c57a387fb095f2bfacd8145b;p=tpg%2Facess2.git Kernel - Added $(LIBGCC_PATH) to allow libgcc to be last in link --- diff --git a/KernelLand/Kernel/Makefile b/KernelLand/Kernel/Makefile index 40fb4a1c..7ea0786a 100644 --- a/KernelLand/Kernel/Makefile +++ b/KernelLand/Kernel/Makefile @@ -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)