Fix --enable-unregistered by passing NOSMP to .hc compiler (#8748)
authorSergei Trofimovich <slyfox@gentoo.org>
Thu, 13 Feb 2014 13:23:02 +0000 (07:23 -0600)
committerAustin Seipp <austin@well-typed.com>
Mon, 17 Feb 2014 07:46:03 +0000 (01:46 -0600)
Signed-off-by: Austin Seipp <austin@well-typed.com>
compiler/ghc.mk

index 0a18713..4977e28 100644 (file)
@@ -353,6 +353,11 @@ else
 compiler_CONFIGURE_OPTS += --ghc-option=-DNO_REGS
 endif
 
+ifneq "$(GhcWithSMP)" "YES"
+compiler_CONFIGURE_OPTS += --ghc-option=-DNOSMP
+compiler_CONFIGURE_OPTS += --ghc-option=-optc-DNOSMP
+endif
+
 # Careful optimisation of the parser: we don't want to throw everything
 # at it, because that takes too long and doesn't buy much, but we do want
 # to inline certain key external functions, so we instruct GHC not to