#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.50 2001/06/06 10:35:39 rrt Exp $
+# $Id: Makefile,v 1.53 2001/07/23 21:31:00 sof Exp $
#
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
#
# Building DLLs is only supported on mingw32 at the moment.
#
-HSLIB = rts
+PACKAGE = rts
ifeq "$(DLLized)" "YES"
SRC_BLD_DLL_OPTS += -lHS_imp_stub -lgmp_imp
# 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.
gmp/libgmp.a ::
$(MAKE) -C gmp MAKEFLAGS=
@$(CP) gmp/.libs/libgmp.a gmp
+ @$(RANLIB) gmp/libgmp.a
endif
#-----------------------------------------------------------------------------