Skip to content

Commit c2de155

Browse files
committed
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: Ihar Hrachyshka <[email protected]>
1 parent de7bcea commit c2de155

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkgs/by-name/sd/SDL_ttf/package.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ stdenv.mkDerivation (finalAttrs: {
3333
(lib.enableFeature enableSdltest "sdltest")
3434
];
3535

36+
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv";
37+
3638
strictDeps = true;
3739

3840
passthru.updateScript = unstableGitUpdater {

0 commit comments

Comments
 (0)