don't add -threaded in stage2/3 if we didn't build the threaded RTS
[ghc-hetmet.git] / compiler / Makefile.ghcbin
index 25a8a58..0e3ce12 100644 (file)
@@ -37,9 +37,11 @@ endif
 
 endif
 
+ifneq "$(findstring thr, $(GhcRTSWays))" ""
 ifneq "$(GhcNotThreaded)" "YES"
 SRC_HC_OPTS += -threaded
 endif
+endif
 
 odir=stage$(stage)