gettext: disable hook when libc == glibc
This commit is contained in:
parent
facd170790
commit
d9aaae5579
@ -49,6 +49,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = stdenv.lib.optional (!stdenv.isLinux && !hostPlatform.isCygwin) libiconv;
|
buildInputs = stdenv.lib.optional (!stdenv.isLinux && !hostPlatform.isCygwin) libiconv;
|
||||||
|
|
||||||
setupHook = ./gettext-setup-hook.sh;
|
setupHook = ./gettext-setup-hook.sh;
|
||||||
|
gettextNeedsLdflags = !hostPlatform.libc != "glibc";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -12,4 +12,6 @@ gettextLdflags() {
|
|||||||
export NIX_LDFLAGS="$NIX_LDFLAGS -lintl"
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lintl"
|
||||||
}
|
}
|
||||||
|
|
||||||
addEnvHooks "$hostOffset" gettextLdflags
|
if [ ! -z "@gettextNeedsLdflags@" ]; then
|
||||||
|
addEnvHooks "$hostOffset" gettextLdflags
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user