gettext: disable hook when libc == glibc

This commit is contained in:
Matthew Bauer 2018-03-14 19:07:43 -05:00
parent facd170790
commit d9aaae5579
2 changed files with 4 additions and 1 deletions

View file

@ -49,6 +49,7 @@ stdenv.mkDerivation rec {
buildInputs = stdenv.lib.optional (!stdenv.isLinux && !hostPlatform.isCygwin) libiconv;
setupHook = ./gettext-setup-hook.sh;
gettextNeedsLdflags = !hostPlatform.libc != "glibc";
enableParallelBuilding = true;

View file

@ -12,4 +12,6 @@ gettextLdflags() {
export NIX_LDFLAGS="$NIX_LDFLAGS -lintl"
}
addEnvHooks "$hostOffset" gettextLdflags
if [ ! -z "@gettextNeedsLdflags@" ]; then
addEnvHooks "$hostOffset" gettextLdflags
fi