From 90c132c7f1052703e236b6a6c46602e207f09e47 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Wed, 14 Mar 2018 14:14:21 -0500 Subject: [PATCH] gettext: add -lintl to setup-hook --- pkgs/development/libraries/gettext/gettext-setup-hook.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/gettext/gettext-setup-hook.sh b/pkgs/development/libraries/gettext/gettext-setup-hook.sh index 5932ef6a44f..bdd34f45394 100644 --- a/pkgs/development/libraries/gettext/gettext-setup-hook.sh +++ b/pkgs/development/libraries/gettext/gettext-setup-hook.sh @@ -5,3 +5,11 @@ gettextDataDirsHook() { } addEnvHooks "$hostOffset" gettextDataDirsHook + +# libintl must be listed in load flags on non-Glibc +# it doesn't hurt to have it in Glibc either though +gettextLdflags() { + export NIX_LDFLAGS="$NIX_LDFLAGS -lintl" +} + +addEnvHooks "$hostOffset" gettextLdflags