X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=pkgsrc-ghc.git;a=blobdiff_plain;f=files%2Fbootstrap.mk;h=e20f79a148f3638dd2a767e904dce6e02b0b8d9d;hp=64f5fd5523ade67f4f652c778776c841fdd254b1;hb=af9d73d52d0864b3f8b1ff223e543f9b09e291f7;hpb=3accc54a2b382216a37577ee1748f2eacfcedddc diff --git a/files/bootstrap.mk b/files/bootstrap.mk index 64f5fd5..e20f79a 100644 --- a/files/bootstrap.mk +++ b/files/bootstrap.mk @@ -19,3 +19,9 @@ utils/ghc-pkg_dist-install_v_EXTRA_CC_OPTS += -L[[PREFIX]]/lib -lm -liconv -lncu SRC_CC_OPTS += -I[[PREFIX]]/include INTEGER_LIBRARY = integer-simple + +# Unregisterised stage0 compiler runs way too slow without GCC's +# optimisation. The stage1 (which is also unregisterised) is still +# slow, but then we have to append CONF_CC_OPTS_STAGE1="-O2" to +# CONFIGURE_ENV as well. +EXTRA_CC_OPTS += -O2