]> gitweb @ CieloNegro.org - pkgsrc-ghc.git/blob - files/bootstrap-bsd.mk
files/bootstrap-bsd.mk: fix dead-code elimination
[pkgsrc-ghc.git] / files / bootstrap-bsd.mk
1 OMIT_PHASE_0 = YES
2 OMIT_PHASE_1 = YES
3 GHC = false
4 GHC_STAGE1 =
5 GHC_PKG_INPLACE =
6 GHC_CABAL_INPLACE =
7 DUMMY_GHC_INPLACE =
8 UNLIT =
9 NO_INCLUDE_DEPS = YES
10 GhcUnregisterised = YES
11 GhcLibWays = v
12 GhcRTSWays =
13 SplitObjs = NO
14 GhcWithNativeCodeGen = NO
15 GhcWithInterpreter = NO
16 GhcWithSMP = NO
17 ghc_stage2_v_EXTRA_CC_OPTS += -L[[PREFIX]]/lib -lm -liconv -lutil -lrt
18 utils/ghc-pkg_dist-install_v_EXTRA_CC_OPTS += -L[[PREFIX]]/lib -lm -liconv -lutil -lrt -lncurses
19
20 SRC_CC_OPTS += -I[[PREFIX]]/include
21 INTEGER_LIBRARY = integer-simple
22
23 #   Unregisterised stage0 compiler gets too large (.text section being
24 # over 64 MiB) without dead-code elimination, exceeding NetBSD/i386's
25 # kernel default limitation.
26 #   Note that stage1 currently doesn't bloat that much (about 42.6
27 # MiB), but when it does we have to append
28 # CONF_CC_OPTS_STAGE1="-fdata..." and
29 # CONF_GCC_LINKER_OPTS_STAGE1="-Wl,--gc-sections" to CONFIGURE_ENV as
30 # well. I guess that's a matter of time :(
31 EXTRA_CC_OPTS += -fdata-sections -ffunction-sections
32 EXTRA_CC_OPTS += -Wl,--gc-sections