Build statically when using LLVM.
authorGeoffrey Mainland <gmainlan@microsoft.com>
Fri, 31 May 2013 15:12:17 +0000 (16:12 +0100)
committerGeoffrey Mainland <gmainlan@microsoft.com>
Fri, 31 May 2013 15:12:17 +0000 (16:12 +0100)
The LLVM back end does not yet work when building dynamically.

mk/build.mk.sample

index 4a84f8f..7036fad 100644 (file)
@@ -85,6 +85,9 @@ ifeq "$(PlatformSupportsSharedLibs)" "YES"
 GhcLibWays += dyn
 endif
 
+DYNAMIC_BY_DEFAULT   = NO
+DYNAMIC_GHC_PROGRAMS = NO
+
 endif
 
 # -------- A Fast build -------------------------------------------------------
@@ -133,6 +136,9 @@ BUILD_DOCBOOK_HTML = NO
 BUILD_DOCBOOK_PS   = NO
 BUILD_DOCBOOK_PDF  = NO
 
+DYNAMIC_BY_DEFAULT   = NO
+DYNAMIC_GHC_PROGRAMS = NO
+
 endif
 
 # -------- Profile the stage2 compiler ----------------------------------------