Plumb top-level --with-gcc=... value around the place.
[ --with-gcc=<gcc command>
Use a different command instead of 'gcc' for the GNU C compiler.
],
-[WhatGccIsCalled="$withval"],
+[WhatGccIsCalled="$withval"
+ CC="$withval"],
[WhatGccIsCalled="gcc"]
)
AC_SUBST(WhatGccIsCalled)
#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.50 2001/06/06 10:35:39 rrt Exp $
+# $Id: Makefile,v 1.51 2001/07/03 16:57:03 sewardj Exp $
#
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
# Pass --target to configure of GMP, so that building for mingwin under
# cygwin works properly (when the host is not the same as the target)
boot ::
- cd gmp && ./configure --enable-shared=no --target=$(HOSTPLATFORM)
+ cd gmp && CC=$(WhatGccIsCalled) ./configure --enable-shared=no --target=$(HOSTPLATFORM)
endif
# Slight cheatage here to pass host as target, but x-compilation isn't supported by ghc.
{-# OPTIONS -cpp -fglasgow-exts #-}
-----------------------------------------------------------------------------
--- $Id: KludgedSystem.hs,v 1.6 2001/04/02 16:10:05 rrt Exp $
+-- $Id: KludgedSystem.hs,v 1.7 2001/07/03 16:57:03 sewardj Exp $
-- system that works feasibly under Windows (i.e. passes the command line to sh,
-- because system() under Windows doesn't look at SHELL, and always uses CMD.EXE)
import System (system)
defaultCompiler :: String
-defaultCompiler = "gcc"
+defaultCompiler = cGCC
progNameSuffix = ""
#else
foreign import "_getpid" unsafe getProcessID :: IO Int
defaultCompiler :: String
-defaultCompiler = "gcc -mno-cygwin -mwin32"
+defaultCompiler = cGCC ++ " -mno-cygwin"
progNameSuffix = ".exe"
#endif /* mingw32_TARGET_OS */
# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.16 2001/06/27 06:18:40 sof Exp $
+# $Id: Makefile,v 1.17 2001/07/03 16:57:03 sewardj Exp $
TOP=../..
include $(TOP)/mk/boilerplate.mk
@echo -n "Creating $(CONFIG_HS) ... "
@echo "module Config where" >>$(CONFIG_HS)
@echo "cDEFAULT_TMPDIR = \"$(DEFAULT_TMPDIR)\"" >> $(CONFIG_HS)
+ @echo "cGCC = \"$(WhatGccIsCalled)\"" >> $(CONFIG_HS)
@echo done.
CLEAN_FILES += $(CONFIG_HS)