summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-07-25 16:46:48 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-09-23 16:00:18 -0400
commitee7bdc5c96d469092b5e2751cfeecfe9cd5a5495 (patch)
treeeefed43afb96a70def56c2925985dbb3f9349ab8 /distrib
parentf48d747dd647111b2e78679eaf572006908a7a5a (diff)
downloadhaskell-ee7bdc5c96d469092b5e2751cfeecfe9cd5a5495.tar.gz
configure: Add check for whether CC supports --target
Diffstat (limited to 'distrib')
-rw-r--r--distrib/configure.ac.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index dfc06e5a43..a1abed4b03 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -168,6 +168,10 @@ dnl May need to use gcc to find platform details.
dnl --------------------------------------------------------------
FPTOOLS_SET_HASKELL_PLATFORM_VARS
+dnl ** See whether cc supports --target=<triple> and set
+dnl CONF_CC_OPTS_STAGE[12] accordingly.
+FP_CC_SUPPORTS_TARGET
+
dnl TargetWordSize for settings file
AC_CHECK_SIZEOF(void *, 4)
if test "x$ac_cv_sizeof_void_p" = "x0"; then