X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=files%2Fbootstrap-bsd.mk;h=6ddd580c2d5b5c9839d718c366df0551374fd702;hb=af9d73d52d0864b3f8b1ff223e543f9b09e291f7;hp=59c63acc9d7a38ce7c59879d31bb9a3b2fd22eaa;hpb=766787e93abcb3dc97d8c1a76dc2b746e5235b81;p=pkgsrc-ghc.git diff --git a/files/bootstrap-bsd.mk b/files/bootstrap-bsd.mk index 59c63ac..6ddd580 100644 --- a/files/bootstrap-bsd.mk +++ b/files/bootstrap-bsd.mk @@ -1,4 +1,7 @@ +OMIT_PHASE_0 = YES +OMIT_PHASE_1 = YES GHC = false +GHC_STAGE1 = GHC_PKG_INPLACE = GHC_CABAL_INPLACE = DUMMY_GHC_INPLACE = @@ -16,3 +19,11 @@ utils/ghc-pkg_dist-install_v_EXTRA_CC_OPTS += -L[[PREFIX]]/lib -lm -liconv -luti SRC_CC_OPTS += -I[[PREFIX]]/include INTEGER_LIBRARY = integer-simple + +# Unregisterised stage0 compiler gets too large (.text section being +# over 64 MiB) without -Os, exceeding NetBSD/i386's kernel default +# limitation. +# Note that stage1 currently doesn't bloat that much (about 42.6 +# MiB), but when it does we have to append CONF_CC_OPTS_STAGE1="-Os" +# to CONFIGURE_ENV as well. I guess that's a matter of time :( +EXTRA_CC_OPTS += -Os