]> gitweb @ CieloNegro.org - build-hc-pkg.git/blobdiff - files/host-build.mk
Various changes to support Linux
[build-hc-pkg.git] / files / host-build.mk
index 326330296bb9699e489f9984e91759ba88643d2d..b54c2e25b04b1b5438b46d725b7e1ce40bb50f89 100644 (file)
@@ -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