summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-02-11 18:42:44 +0000
committerIan Lynagh <igloo@earth.li>2011-02-11 18:42:44 +0000
commit650d644055ff9cf23891611efb578e4fff07a1d9 (patch)
treefb1f911dc3a86843292f1223fb1e8a1aeafc2501 /distrib
parent72c40bc5f2d193ebd89471f6e1f2a36b81042304 (diff)
downloadhaskell-650d644055ff9cf23891611efb578e4fff07a1d9.tar.gz
Fix platform detection in bindists
In a bindist, we generate files like the hsc2hs wrapper. This means we need to have the right values for the variables like CONF_GCC_LINKER_OPTS_STAGE1 which in turn means we need to know what platform we're on.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/configure.ac.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index e17bcf52b4..d5aa2be68d 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -18,6 +18,9 @@ dnl--------------------------------------------------------------------
FP_GMP
+bootstrap_target=`ghc/stage2/build/tmp/ghc-stage2 +RTS --info | grep '^ ,("Target platform"' | sed -e 's/.*, "//' -e 's/")//' | tr -d '\r'`
+FPTOOLS_SET_PLATFORM_VARS
+
#
dnl ** Check Perl installation **
#