$OpenBSD: patch-iserv_ghc_mk,v 1.2 2018/01/22 00:42:30 kili Exp $

Seriously -- if there are knobs to disable threads it should be possible
to build everything without threads.

Index: iserv/ghc.mk
--- iserv/ghc.mk.orig
+++ iserv/ghc.mk
@@ -20,9 +20,11 @@ iserv_stage2_p_MORE_HC_OPTS += -debug
 iserv_stage2_dyn_MORE_HC_OPTS += -debug
 endif
 
+ifeq "$(GhcThreaded)" "YES"
 iserv_stage2_MORE_HC_OPTS += -threaded
 iserv_stage2_p_MORE_HC_OPTS += -threaded
 iserv_stage2_dyn_MORE_HC_OPTS += -threaded
+endif
 
 # Add -Wl,--export-dynamic enables GHCi to load dynamic objects that
 # refer to the RTS.  This is harmless if you don't use it (adds a bit
