summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2023-01-07 18:11:54 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-09 21:11:04 -0500
commit4724e8d1a66fa0a821d322d9d2d90db7d7604916 (patch)
treea31e0454f8e343d04cf4c05762f508565d016400 /distrib
parent64286132cc0db4e227637887f98f5a3ecf7d326a (diff)
downloadhaskell-4724e8d1a66fa0a821d322d9d2d90db7d7604916.tar.gz
Check for FP_LD_NO_FIXUP_CHAINS in installation configure script
Otherwise, when installing from a bindist the C flag isn't passed to the C compiler. This completes the fix for #22429
Diffstat (limited to 'distrib')
-rw-r--r--distrib/configure.ac.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index 8c0caa56e1..3efadcc177 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -171,6 +171,11 @@ FPTOOLS_SET_C_LD_FLAGS([target],[CONF_CC_OPTS_STAGE1],[CONF_GCC_LINKER_OPTS_STAG
# Stage 3 won't be supported by cross-compilation
FPTOOLS_SET_C_LD_FLAGS([target],[CONF_CC_OPTS_STAGE2],[CONF_GCC_LINKER_OPTS_STAGE2],[CONF_LD_LINKER_OPTS_STAGE2],[CONF_CPP_OPTS_STAGE2])
+FP_LD_NO_FIXUP_CHAINS([target], [LDFLAGS])
+FP_LD_NO_FIXUP_CHAINS([build], [CONF_GCC_LINKER_OPTS_STAGE0])
+FP_LD_NO_FIXUP_CHAINS([target], [CONF_GCC_LINKER_OPTS_STAGE1])
+FP_LD_NO_FIXUP_CHAINS([target], [CONF_GCC_LINKER_OPTS_STAGE2])
+
AC_SUBST(CONF_CC_OPTS_STAGE0)
AC_SUBST(CONF_CC_OPTS_STAGE1)
AC_SUBST(CONF_CC_OPTS_STAGE2)