Commit 5296a206 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Merge pull request #2946 from hvr/pr/autoconf-cc-setting

Use standard mechanism to tell ./configure the c-compiler
parents 6b438148 47259753
......@@ -641,7 +641,7 @@ runConfigureScript verbosity backwardsCompatHack flags lbi = do
spSep = [searchPathSeparator]
pathEnv = maybe (intercalate spSep extraPath) ((intercalate spSep extraPath ++ spSep)++) $ lookup "PATH" env
overEnv = ("CFLAGS", Just cflagsEnv) : [("PATH", Just pathEnv) | not (null extraPath)]
args' = args ++ ["--with-gcc=" ++ ccProg]
args' = args ++ ["CC=" ++ ccProg]
shProg = simpleProgram "sh"
progDb = modifyProgramSearchPath (\p -> map ProgramSearchPathDir extraPath ++ p) emptyProgramDb
shConfiguredProg <- lookupProgram shProg `fmap` configureProgram verbosity shProg progDb
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment