X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=files%2Fbootstrap-linux.mk;fp=files%2Fbootstrap-linux.mk;h=ac8ca7d9dd8d02cf895721296cfd2ad6c5c58e3f;hb=0f77a20d07ac42684cc03ecdea0028bea2941488;hp=0000000000000000000000000000000000000000;hpb=af9d73d52d0864b3f8b1ff223e543f9b09e291f7;p=pkgsrc-ghc.git diff --git a/files/bootstrap-linux.mk b/files/bootstrap-linux.mk new file mode 100644 index 0000000..ac8ca7d --- /dev/null +++ b/files/bootstrap-linux.mk @@ -0,0 +1,27 @@ +OMIT_PHASE_0 = YES +OMIT_PHASE_1 = YES +GHC = false +GHC_STAGE1 = +GHC_PKG_INPLACE = +GHC_CABAL_INPLACE = +DUMMY_GHC_INPLACE = +UNLIT = +NO_INCLUDE_DEPS = YES +GhcUnregisterised = YES +GhcLibWays = v +GhcRTSWays = +SplitObjs = NO +GhcWithNativeCodeGen = NO +GhcWithInterpreter = NO +GhcWithSMP = NO +ghc_stage2_v_EXTRA_CC_OPTS += -L[[PREFIX]]/lib -lm -liconv -lrt -ldl +utils/ghc-pkg_dist-install_v_EXTRA_CC_OPTS += -L[[PREFIX]]/lib -lm -liconv -lrt -ldl -lncurses + +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_STAGE0="-O2" to +# CONFIGURE_ARGS as well. +EXTRA_CC_OPTS += -O2