X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=files%2Fbootstrap-bsd.mk;h=594217884315cbc582ca14edf41c48a348f603ee;hb=d72a819a5d6275b13173527b53f60de77ea10e4e;hp=aa46508b4782e5153b537fe0d9c0461f5a4d6d0d;hpb=9795cf147d263fd5fad5d40948bc965e9219dd64;p=pkgsrc-ghc.git diff --git a/files/bootstrap-bsd.mk b/files/bootstrap-bsd.mk index aa46508..5942178 100644 --- a/files/bootstrap-bsd.mk +++ b/files/bootstrap-bsd.mk @@ -19,3 +19,14 @@ 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 dead-code elimination, 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="-fdata..." and +# CONF_GCC_LINKER_OPTS_STAGE1="-Wl,--gc-sections" to CONFIGURE_ENV as +# well. I guess that's a matter of time :( +ghc_stage2_v_ALL_CC_OPTS += -fdata-sections -ffunction-sections +ghc_stage2_v_EXTRA_CC_OPTS += -Wl,--gc-sections