[commit: ghc] ghc-8.0: configure.ac: fix --host= handling (b205029)

git at git.haskell.org git at git.haskell.org
Tue Sep 20 11:15:10 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/b20502997c0e1817b2360e3aaabcea31c1d7dedd/ghc

>---------------------------------------------------------------

commit b20502997c0e1817b2360e3aaabcea31c1d7dedd
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Fri Sep 2 08:35:25 2016 +0100

    configure.ac: fix --host= handling
    
    The following command fails as:
        $ ./configure --prefix=/usr \
            --build=x86_64-pc-linux-gnu \
            --host=x86_64-pc-linux-gnu \
            --target=x86_64-pc-linux-gnu
        configure: error:
        You've selected:
    
          BUILD:  x86_64-unknown-linux
          HOST:   x86_64-unknown-linux
          TARGET: x86_64-unknown-linux
    
        BUILD must equal HOST;
    
    18f06878ed5d8cb0cf366a876f2bfea29647e5f0 changed native
    configure $build/$host/$target checks to ghc-mangled ones,
    but not completely.
    
    Signed-off-by: Sergei Trofimovich <siarheit at google.com>
    
    Reviewers: rwbarton, erikd, austin, hvr, bgamari, Phyx
    
    Reviewed By: Phyx
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2508
    
    GHC Trac Issues: #12487
    
    (cherry picked from commit 0cc3931bd7831fa8d042f968a5a9114534a656e4)


>---------------------------------------------------------------

b20502997c0e1817b2360e3aaabcea31c1d7dedd
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 20ee711..13d33d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -426,7 +426,7 @@ if test "$TargetPlatform" != "$HostPlatform" ; then
                           #   configure: error: cannot run C compiled programs.
                           #   If you meant to cross compile, use `--host'.
 fi
-if test "$BuildPlatform" != "$host" ; then
+if test "$BuildPlatform" != "$HostPlatform" ; then
    AC_MSG_ERROR([
 You've selected:
 



More information about the ghc-commits mailing list