Closed whoozle closed 6 years ago
I doubt SDL can drop this approach - while it's indeed not necessary for *nix systems, it's required for other systems which have entry points different from int main()
. Without libSDLmain, client code will need to have #ifdef
for each supported system.
Can we maybe stay on a safe side and leave it required on non-unix systems, e.g. leave the current behavior under IF(NOT UNIX)
?
yes, sure, I've wrapped this in IF (UNIX), please take a look. It could find main library on gentoo, but no main lib in SDL2/SDL2-devel packages in Fedora unfortunately.
Thank you!
Fedora's SDL2 rpm package is lacking main library, and it looks like SDL is not using this approach anymore, and it can be safely ignored