X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=build-hc-pkg.git;a=blobdiff_plain;f=files%2Fhost-build.mk;h=b54c2e25b04b1b5438b46d725b7e1ce40bb50f89;hp=326330296bb9699e489f9984e91759ba88643d2d;hb=HEAD;hpb=2a3f4cc52b80621fa709e77ebc824847a6bf1709 diff --git a/files/host-build.mk b/files/host-build.mk index 3263302..b54c2e2 100644 --- a/files/host-build.mk +++ b/files/host-build.mk @@ -1,3 +1,4 @@ +# -*- makefile-gmake -*- PORTING_HOST = YES GhcUnregisterised = YES GhcLibHcOpts = -O -fvia-C -keep-hc-files @@ -17,3 +18,9 @@ INTEGER_LIBRARY = integer-simple libraries/terminfo_CONFIGURE_OPTS += \ --configure-option=--with-curses-includes=/usr/pkg/include \ --configure-option=--with-curses-libraries=/usr/pkg/lib + +ifeq ($(shell uname),Linux) +# To find out why evacuate() segfaults on Linux... +rts_CC_OPTS += -O0 -g +# ...but this stops ghc-stage2 from segfaulting. Sigh. +endif