Make the thr_dyn RTS ways optional on GhcUnregisterised
authorSimon Marlow <marlowsd@gmail.com>
Wed, 19 Aug 2009 09:55:38 +0000 (09:55 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 19 Aug 2009 09:55:38 +0000 (09:55 +0000)
Fixes this failure in the unreigsterised build:
  /usr/bin/ld: cannot find -lHSrts_thr

mk/config.mk.in

index 9ada654..f11c6f7 100644 (file)
@@ -251,7 +251,7 @@ GhcRTSWays += debug
 endif
 
 ifeq "$(BuildSharedLibs)" "YES"
 endif
 
 ifeq "$(BuildSharedLibs)" "YES"
-GhcRTSWays += dyn debug_dyn thr_dyn thr_debug_dyn
+GhcRTSWays += dyn debug_dyn $(if $(findstring NO, $(GhcUnregisterised)),thr_dyn thr_debug_dyn)
 endif
 
 # Want the threaded versions unless we're unregisterised
 endif
 
 # Want the threaded versions unless we're unregisterised