]> gitweb @ CieloNegro.org - build-hc-pkg.git/blob - files/host-build.mk
Various changes to support Linux
[build-hc-pkg.git] / files / host-build.mk
1 # -*- makefile-gmake -*-
2 PORTING_HOST = YES
3 GhcUnregisterised = YES
4 GhcLibHcOpts = -O -fvia-C -keep-hc-files
5 GhcRtsHcOpts = -keep-hc-files
6 GhcLibWays = v
7 GhcRTSWays =
8 SplitObjs = NO
9 GhcWithNativeCodeGen = NO
10 GhcWithInterpreter = NO
11 GhcStage1HcOpts = -O
12 GhcStage2HcOpts = -O -fvia-C -keep-hc-files
13 SRC_HC_OPTS += -H32m
14 GhcWithSMP = NO
15 utils/ghc-pkg_dist-install_v_HC_OPTS += -keep-hc-files
16
17 INTEGER_LIBRARY = integer-simple
18 libraries/terminfo_CONFIGURE_OPTS += \
19         --configure-option=--with-curses-includes=/usr/pkg/include \
20         --configure-option=--with-curses-libraries=/usr/pkg/lib
21
22 ifeq ($(shell uname),Linux)
23 # To find out why evacuate() segfaults on Linux...
24 rts_CC_OPTS += -O0 -g
25 # ...but this stops ghc-stage2 from segfaulting. Sigh.
26 endif