Commit c2de1554 authored by Ihar Hrachyshka's avatar Ihar Hrachyshka
Browse files

SDL_ttf: fix build on darwin



Without it, the build failed with:

Undefined symbols for architecture arm64:
  "_iconv", referenced from:
      _SDL_main in showfont.o
  "_iconv_close", referenced from:
      _SDL_main in showfont.o
  "_iconv_open", referenced from:
      _SDL_main in showfont.o

Signed-off-by: default avatarIhar Hrachyshka <ihar.hrachyshka@gmail.com>
parent de7bcea7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -33,6 +33,8 @@ stdenv.mkDerivation (finalAttrs: {
    (lib.enableFeature enableSdltest "sdltest")
  ];

  env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv";

  strictDeps = true;

  passthru.updateScript = unstableGitUpdater {