summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorCheng Shao <cheng.shao@tweag.io>2021-01-24 13:38:04 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-27 17:44:27 -0500
commit0da1f19e0d4bfe57706a5f74de8301ae5e106381 (patch)
treeaa9a29fe58cf89deb628c224d30519d0aedfceb8 /aclocal.m4
parent831ba0fb216e7481d1fb299b1cff09298b060370 (diff)
downloadhaskell-0da1f19e0d4bfe57706a5f74de8301ae5e106381.tar.gz
Respect $AR in configure script
Previously, the configure script doesn't respect $AR. This causes the nixpkgs GHC to capture "ar" instead of the absolute nix store path of ar in the global config. The original patch comes from https://github.com/input-output-hk/haskell.nix/blob/master/overlays/patches/ghc/respect-ar-path.patch.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index c63f3b8c55..3e240eaaaa 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1235,7 +1235,8 @@ AC_SUBST([LdHasFilelist])
# thinks that target == host so it never checks the unqualified
# tools for Windows. See #14274.
AC_DEFUN([FP_PROG_AR],
-[if test -z "$fp_prog_ar"; then
+[AC_SUBST(fp_prog_ar,$AR)
+if test -z "$fp_prog_ar"; then
if test "$HostOS" = "mingw32"
then
AC_PATH_PROG([fp_prog_ar], [ar])