From b86b96aa4a076c049f8dd98f0d078bac4e6e1c3d Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Tue, 10 Mar 2020 22:39:25 +0100 Subject: [PATCH] fxsdk: split additional libs into LIBS_FX and LIBS_CG This is because several libraries have separate binaries, and so are linked with different command-line arguments, just like gint is linked with -lgint-fx on one side and -lgint-cg on the other. --- fxsdk/fxsdk.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fxsdk/fxsdk.sh b/fxsdk/fxsdk.sh index 73e7ea0..39b9f29 100755 --- a/fxsdk/fxsdk.sh +++ b/fxsdk/fxsdk.sh @@ -191,11 +191,12 @@ INCLUDE := -I include # Libraries. Add one -l option for each library you are using, and also # suitable -L options if you have library files in custom folders. To use # fxlib, add libfx.a to the project directory and use "-L . -lfx". -LIBS := +LIBS_FX := +LIBS_CG := # Base linker flags for the fxSDK, you usually want to keep these. -LDFLAGS_FX := -T fx9860g.ld -lgint-fx \$(LIBS) -lgint-fx -lgcc -LDFLAGS_CG := -T fxcg50.ld -lgint-cg \$(LIBS) -lgint-cg -lgcc +LDFLAGS_FX := -T fx9860g.ld -lgint-fx \$(LIBS_FX) -lgint-fx -lgcc +LDFLAGS_CG := -T fxcg50.ld -lgint-cg \$(LIBS_CG) -lgint-cg -lgcc # Additional linker flags, if you need any. LDFLAGS :=