3
0
Fork 0
forked from mirrors/nixpkgs

SDL2: clean configure flags.

I removed some flags that are no longer present, one that was redundant
(default value) and added a comment regarding why enable-static is there.
This commit is contained in:
Carles Pagès 2013-11-04 19:49:57 +01:00
parent 1138f0a96b
commit b551f8bced

View file

@ -15,10 +15,11 @@ assert alsaSupport -> alsaLib != null;
assert pulseaudioSupport -> pulseaudio != null;
let
# force enable-static, to workaround this bug:
# https://bugzilla.libsdl.org/show_bug.cgi?id=1431
configureFlagsFun = attrs: ''
--disable-oss --disable-video-x11-xme
--disable-x11-shared --disable-alsa-shared --enable-rpath --disable-pulseaudio-shared
--disable-osmesa-shared --enable-static
--enable-static --disable-oss --disable-x11-shared
--disable-pulseaudio-shared --disable-alsa-shared
${if alsaSupport then "--with-alsa-prefix=${attrs.alsaLib}/lib" else ""}
'';
in