+# -*- makefile-gmake -*-
PORTING_HOST = YES
GhcUnregisterised = YES
GhcLibHcOpts = -O -fvia-C -keep-hc-files
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