summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-02-05 19:01:24 -0500
committerBen Gamari <ben@smart-cactus.org>2022-02-09 15:56:11 -0500
commit4dff9799f32a9f82ac2eb286775c2f9906082271 (patch)
tree6f0909072e0bc733669b1f2cc3cca4f83a3eb78d
parenta6d74c54493d3c81789a1f701b2ef2c35ff98ed2 (diff)
downloadhaskell-4dff9799f32a9f82ac2eb286775c2f9906082271.tar.gz
configure: fixes
-rw-r--r--configure.ac9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index df24bc472e..2b2d4ef606 100644
--- a/configure.ac
+++ b/configure.ac
@@ -443,14 +443,19 @@ then
mingwbin="$hardtop/inplace/mingw/bin/"
CC="${mingwbin}clang.exe"
+ CFLAGS="-fuse-ld=lld --rtlib=compiler-rt"
+ CONF_CC_OPTS_STAGE1="--rtlib=compiler-rt"
+ CONF_CC_OPTS_STAGE2="--rtlib=compiler-rt"
+ CONF_GCC_LINKER_OPTS_STAGE1="-fuse-ld=lld --rtlib=compiler-rt"
+ CONF_GCC_LINKER_OPTS_STAGE2="-fuse-ld=lld --rtlib=compiler-rt"
LD="${mingwbin}ld.lld.exe"
NM="${mingwbin}llvm-nm.exe"
AR="${mingwbin}llvm-ar.exe"
RANLIB="${mingwbin}llvm-ranlib.exe"
OBJDUMP="${mingwbin}llvm-objdump.exe"
DLLTOOL="${mingwbin}llvm-dlltool.exe"
- MergeObjsCmd="${mingwbin}ld.lld.exe"
- MergeObjsArgs="-r"
+ MergeObjsCmd="${mingwbin}ld.bfd.exe"
+ MergeObjsArgs="-r --oformat=pe-bigobj-x86-64"
AC_PATH_PROG([Genlib],[genlib])
fi