gettext: disable hook when libc == glibc
This commit is contained in:
parent
facd170790
commit
d9aaae5579
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -12,4 +12,6 @@ gettextLdflags() {
|
|||
export NIX_LDFLAGS="$NIX_LDFLAGS -lintl"
|
||||
}
|
||||
|
||||
addEnvHooks "$hostOffset" gettextLdflags
|
||||
if [ ! -z "@gettextNeedsLdflags@" ]; then
|
||||
addEnvHooks "$hostOffset" gettextLdflags
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue