summaryrefslogtreecommitdiff
path: root/lang/ghc7/files/bootstrap.build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ghc7/files/bootstrap.build.mk')
-rw-r--r--lang/ghc7/files/bootstrap.build.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/lang/ghc7/files/bootstrap.build.mk b/lang/ghc7/files/bootstrap.build.mk
new file mode 100644
index 00000000000..c1cbdb73f21
--- /dev/null
+++ b/lang/ghc7/files/bootstrap.build.mk
@@ -0,0 +1,35 @@
+# -*- makefile-gmake -*-
+#
+# This is a build conf for bootstrapping compilers.
+#
+
+# We don't want any docs.
+HADDOCK_DOCS = NO
+BUILD_DOCBOOK_HTML = NO
+BUILD_DOCBOOK_PS = NO
+BUILD_DOCBOOK_PDF = NO
+BUILD_MAN = NO
+
+# Enabling evil-splitter reduces bindist size, which is good. However
+# it introduces a run-time dependency on perl, which is unacceptable.
+SplitObjs = NO
+
+# We only want vanilla libraries and rts. No profiling, no shared
+# libraries, no debugging, no event logging.
+GhcLibWays = v
+GhcRTSWays =
+
+# I'm not sure disabling GHCi significantly reduces the bindist size,
+# but we don't need it anyway.
+GhcWithInterpreter = NO
+
+# We don't want in-place GMP to be statically linked as it increases
+# the bindist size. Dynamic linkage is even worse.
+INTEGER_LIBRARY = integer-simple
+
+# We'd like to distinguish bootstrapping bindists from normal ones.
+BIN_DIST_NAME = ghc-$(ProjectVersion)-boot
+
+libraries/terminfo_CONFIGURE_OPTS += \
+ --configure-option=--with-curses-includes=@NCURSES_PREFIX@/include \
+ --configure-option=--with-curses-libraries=@NCURSES_PREFIX@/lib