I suggest those changes to make better support for some compilers. I was able to set SGDK up using sgdk_nix on Gentoo using m68k-gcc that I got up and running via crossdev. However, there is a difference between m68k-gcc on Arch and on Gentoo. Running Arch m68k-elf-gcc -### yields:
While running Gentoo m68k-unknown-linux-gnu-gcc -### built by crossdev out of the box without any additional tweaking whatsoever yields the following on my machine:
In comparison, the latter has --enable-lto --enable-default-pie --enable-default-ssp, which enables link time optimization, position independent executable and stack smashing protection, which we do not want. Luckily, there is an easy fix to work around that by supplying gcc with -fno-pie -no-pie -fno-stack-protector -fno-lto to revert those default settings back.
Of course, those changes should not make any impact on compilers with those settings disabled by default.
I suggest those changes to make better support for some compilers. I was able to set SGDK up using sgdk_nix on Gentoo using m68k-gcc that I got up and running via crossdev. However, there is a difference between m68k-gcc on Arch and on Gentoo. Running Arch
m68k-elf-gcc -###
yields:While running Gentoo
m68k-unknown-linux-gnu-gcc -###
built by crossdev out of the box without any additional tweaking whatsoever yields the following on my machine:In comparison, the latter has
--enable-lto --enable-default-pie --enable-default-ssp
, which enables link time optimization, position independent executable and stack smashing protection, which we do not want. Luckily, there is an easy fix to work around that by supplying gcc with-fno-pie -no-pie -fno-stack-protector -fno-lto
to revert those default settings back. Of course, those changes should not make any impact on compilers with those settings disabled by default.