switchbrew / switch-examples

Switch examples for devkitA64 and libnx.
https://devkitpro.org/viewforum.php?f=42
559 stars 99 forks source link

Builds will silently fail if switch-pkg-config is not installed #79

Closed bylaws closed 4 years ago

bylaws commented 4 years ago

If you try to build sdl-audio without pkg-config installed a few warning messages will be produced but rather than failing, an invalid nro with no code at all will be produced. Rather than failing like this it would be desirable to cancel the build with an error.

/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/10.1.0/../../../../aarch64-none-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000000040 ^ output from linker

WinterMute commented 4 years ago

updating the wrappers to fail if pkg-config isn't present helps a little but will still end up with an invalid .nro https://github.com/devkitPro/pacman-packages/commit/e780a942fbec132dccee23587f6bd5f59d815005

I'm not entirely sure why linking isn't failing here.