Makefile: resolve libgcc and libc in correct order

When actually utilizing functions from libc, linking will fail
because the functions used from libc have to be defined after libc.

This is the case with libgcc, so we swap their order.
This commit is contained in:
Michael Panzlaff 2021-04-17 19:00:02 +02:00
parent c1da6b29bc
commit 0767f4b9ce

View File

@ -82,7 +82,7 @@ endif
LDFLAGS = -Map ../../$(MAP) LDFLAGS = -Map ../../$(MAP)
LIB := $(LIBPATH) -lgcc -lc -L../../libagbsyscall -lagbsyscall LIB := $(LIBPATH) -lc -lgcc -L../../libagbsyscall -lagbsyscall
SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
GFX := tools/gbagfx/gbagfx$(EXE) GFX := tools/gbagfx/gbagfx$(EXE)