forked from mirrors/nixpkgs
SDL2: fix creation of libSDL2main.a
It's required by a trigger rally update I will commit next. And other games use that too.
This commit is contained in:
parent
e62fe37575
commit
0c42efd9d7
|
@ -52,6 +52,8 @@ stdenv.mkDerivation rec {
|
||||||
# https://bugzilla.libsdl.org/show_bug.cgi?id=1431
|
# https://bugzilla.libsdl.org/show_bug.cgi?id=1431
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
# XXX: By default, SDL wants to dlopen() PulseAudio, in which case
|
# XXX: By default, SDL wants to dlopen() PulseAudio, in which case
|
||||||
# we must arrange to add it to its RPATH; however, `patchelf' seems
|
# we must arrange to add it to its RPATH; however, `patchelf' seems
|
||||||
# to fail at doing this, hence `--disable-pulseaudio-shared'.
|
# to fail at doing this, hence `--disable-pulseaudio-shared'.
|
||||||
|
@ -62,6 +64,7 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
moveToOutput lib/libSDL2main.a "$dev"
|
||||||
rm $out/lib/*.a
|
rm $out/lib/*.a
|
||||||
moveToOutput bin/sdl2-config "$dev"
|
moveToOutput bin/sdl2-config "$dev"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue