Skip to content

2022.10

Compare
Choose a tag to compare
@andwn andwn released this 02 Oct 17:34
· 49 commits to master since this release

Another release only a week after the last one, because of a critical bug with the libmd built in 2022.09. Bank switching support for SGDK will be split out into libmd-far(-debug).a from now on.


Extract to your home directory so the contents are in ~/mars. There should be just one "mars" folder.

Software versions:
GCC 12.2.0
Newlib 4.2.0
SGDK 1.80

Included targets:
make m68k-toolchain-newlib LANGS=c,c++ sh-toolchain-newlib LANGS=c,c++ z80-tools sgdk sik-tools flamewing-tools m68k-gdb sh-gdb

(My Macbook crashed during the second pass of sh-toolchain-newlib and I don't want the thing to burn to a crisp so the macos build only has basic C support for SH-2)


Note about the compressor tools in flamewing-tools: I could not figure out how to convince cmake to statically link these, so manual intervention is required if you intend to use these tools. sudo mv ~/mars/lib/*.so /usr/lib/ aught to be enough, or if you don't have root access, export LD_LIBRARY_PATH=${HOME}/mars/lib

IMPORTANT NOTE ABOUT GCC 10.X:
Since GCC 10, -fno-common is set by default, which results in SGDK (and many of my own projects) throwing "multiple definition" errors during the linking stage. To work around this, you can either add -fcommon to the CFLAGS in your Makefile, or fix your headers so that global variables are defined as extern. See: GCC Documentation for the flag