summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Panzlaff <michael.panzlaff@fau.de>2021-04-17 19:00:02 +0200
committerMichael Panzlaff <michael.panzlaff@fau.de>2021-04-17 19:00:02 +0200
commit0767f4b9ce0ad9dd86e83f5a09674cbc6559df29 (patch)
tree1d57041e316131fd4964125fb2a79a6b24489c91
parentc1da6b29bc853df1a42f08adb9b141de747dae55 (diff)
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d97634399..c76c24a5d 100644
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,7 @@ endif
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
GFX := tools/gbagfx/gbagfx$(EXE)