So far I setup the dkp repo for pacman, installed all the switch packages and all the library packages from there, cross compiled glew and added it to the portlibs location.
After cloning st and doing
- {l Code}: {l Select All Code}
git submodule update --init --recursive
I ran
- {l Code}: {l Select All Code}
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake ..
Output of this was https://privatebin.net/?e95018ad302fc57f#48mbMVYi8pv6Ep3WMQFpvhza8RNFj7X7gCjg8ZxfK6A3
Running
- {l Code}: {l Select All Code}
make
After seeing the error appeared to be with the PhysFS library (there was no mention of it when compiling for linux) I made sure it was present in the portlibs folder (it was, installed through (dkp)-pacman).
Noticing that -rdynamic seemed to be causing issues (even though it seems that it gets ignored if dynamic linking isn't available), I ran
- {l Code}: {l Select All Code}
strace -f make 2>&1 | grep rdyn
I also tried editing
- {l Code}: {l Select All Code}
supertux/mk/cmake/SuperTux/ProvidePhysfs.cmake
- {l Code}: {l Select All Code}
if(PHYSFS_LIBRARY)