From 6515495ef8d3017fb46eeac3c9cb7acaa042259a Mon Sep 17 00:00:00 2001 From: espie Date: Thu, 21 Aug 2003 19:51:23 +0000 Subject: [PATCH] pass 80M up as TWEAKED_SIZE in MAKE_FLAGS, so that it's easier to fiddle with. --- lang/ghc/Makefile | 5 ++++- lang/ghc/patches/patch-ghc_compiler_Makefile | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile index 5cc86a0a5b4..fd14503256d 100644 --- a/lang/ghc/Makefile +++ b/lang/ghc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2003/08/14 21:38:36 avsm Exp $ +# $OpenBSD: Makefile,v 1.10 2003/08/21 19:51:23 espie Exp $ # Based on Simon Marlow's port script for FreeBSD: # $FreeBSD: ports/lang/ghc/Makefile,v 1.13 2002/08/22 12:53:38 obraun Exp $ # @@ -67,6 +67,9 @@ USE_GMAKE= Yes CONFIGURE_STYLE=gnu dest CONFIGURE_ARGS= --with-ghc=${STAGE0}/ghc/driver/ghc-inplace +# XXX fiddle with this if the 4.08 compiler burps for you +MAKE_FLAGS= TWEAKED_SIZE=80M + CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ LOCALBASE="${LOCALBASE}" diff --git a/lang/ghc/patches/patch-ghc_compiler_Makefile b/lang/ghc/patches/patch-ghc_compiler_Makefile index 8c4e2df70a0..8b0da3d0c5b 100644 --- a/lang/ghc/patches/patch-ghc_compiler_Makefile +++ b/lang/ghc/patches/patch-ghc_compiler_Makefile @@ -1,4 +1,4 @@ -$OpenBSD: patch-ghc_compiler_Makefile,v 1.2 2003/08/01 14:03:40 avsm Exp $ +$OpenBSD: patch-ghc_compiler_Makefile,v 1.3 2003/08/21 19:51:23 espie Exp $ Note: -H sets the initial size of the garbage collected heap used by the compiler to compiled a Haskell file. There appears to be some kind of garbage collection bug in the stage1 compiler build @@ -21,7 +21,7 @@ was determined experimentally. SRC_CC_OPTS += -Iparser -I. -O SRC_HC_OPTS += -recomp $(GhcHcOpts) $(GhcStage$(stage)HcOpts) -SRC_HC_OPTS += -H16M -+SRC_HC_OPTS += -H80M ++SRC_HC_OPTS += -H${TWEAKED_SIZE} ifeq "$(BootingFromHc)" "YES" SRC_CC_OPTS += -D__GLASGOW_HASKELL__=$(ProjectVersionInt)