From 7a00e80329b5ff9673f6a2282f98db7903af7d3f Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 2 Dec 2018 14:26:53 -0600 Subject: ghc: don’t add libiconv automatically MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ghc needs it to fail to correctly detect it for later. --- pkgs/development/libraries/libiconv/setup-hook.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgs/development/libraries/libiconv') diff --git a/pkgs/development/libraries/libiconv/setup-hook.sh b/pkgs/development/libraries/libiconv/setup-hook.sh index d20e94513e2..f89361a6299 100644 --- a/pkgs/development/libraries/libiconv/setup-hook.sh +++ b/pkgs/development/libraries/libiconv/setup-hook.sh @@ -2,5 +2,7 @@ # it doesn't hurt to have it in Glibc either though # See pkgs/build-support/setup-hooks/role.bash -getHostRole -export NIX_${role_pre}LDFLAGS+=" -liconv" +if [ -z "$dontAddExtraLibs" ]; then + getHostRole + export NIX_${role_pre}LDFLAGS+=" -liconv" +fi -- cgit 1.4.1