SDL2_gfx: fix underlinking against -lm

Without the change `freeciv_sdl2` fails to detec `-lSDL2_gfx` as
https://hydra.nixos.org/build/294735307:

    checking for rotozoomSurface in -lSDL2_gfx... no
    configure: error: specified client 'sdl2' not configurable (SDL2_gfx is needed (www.libsdl.org))
This commit is contained in:
Sergei Trofimovich
2025-04-20 09:46:11 +01:00
parent f315f1ad9d
commit 3e5b16c2cf
+4
View File
@@ -38,6 +38,10 @@ stdenv.mkDerivation (finalAttrs: {
"dev"
];
# Missing 'sincos()' implementation fails linking projects
# like 'freeciv_sdl2'.
env.NIX_LDFLAGS = "-lm";
configureFlags = [
(lib.enableFeature enableMmx "mmx")
(lib.enableFeature enableSdltest "sdltest")