SDL1: fix building for musl with GCC 14

This commit is contained in:
Alyssa Ross 2024-09-15 22:10:56 +02:00
parent 999011cc40
commit acff7907ed
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -72,7 +72,8 @@ stdenv.mkDerivation (finalAttrs: {
# Please try revert the change that introduced this comment when updating SDL.
] ++ lib.optional stdenv.isDarwin "--disable-x11-shared"
++ lib.optional (!x11Support) "--without-x"
++ lib.optional alsaSupport "--with-alsa-prefix=${alsa-lib.out}/lib";
++ lib.optional alsaSupport "--with-alsa-prefix=${alsa-lib.out}/lib"
++ lib.optional stdenv.hostPlatform.isMusl "CFLAGS=-DICONV_INBUF_NONCONST";
patches = [
./find-headers.patch