Closed kentosama closed 4 years ago
Hello, I found how to fix the problem: add $(OBJ) at end.
$(SGDK)/lib/libmd_debug.a: $(OBJ)
ar rs $(SGDK)/lib/libmd_debug.a **$(OBJ)**
Thanks! I never really did much testing with the debug build, so this is really helpful. I'll fix up the makefile unless you want to open a PR for the credit. :)
Regardless, the most important thing is that it works :)
Hello, I tried to compile several libmd_debug, but the lib is broken. GCC makes an 8kb file, which is not normal and does not work in all cases.
I did not compare the source makefile from SGDK.
SGDK Libs
SGDK build
Sample build