[project @ 2002-01-31 10:47:47 by sof]
authorsof <unknown>
Thu, 31 Jan 2002 10:47:47 +0000 (10:47 +0000)
committersof <unknown>
Thu, 31 Jan 2002 10:47:47 +0000 (10:47 +0000)
Pass -lpthread to linker when using a 'threaded' RTS

ghc/driver/Makefile
ghc/driver/PackageSrc.hs

index a7667bf..cd27d6f 100644 (file)
@@ -41,6 +41,10 @@ else
 SRC_HC_OPTS += -syslib concurrent -syslib posix -syslib misc
 endif
 
+ifeq "$(GhcRtsThreaded)" "YES"
+SRC_HC_OPTS +=-DTHREADED_RTS
+endif
+
 SRC_HC_OPTS += -DWANT_PRETTY
 SRC_HC_OPTS += $(filter -D% -U%,$(GhcRtsCcOpts))
 
index 486271a..6a1036a 100644 (file)
@@ -82,6 +82,10 @@ package_details installing
 #ifdef USING_LIBBFD
                              "bfd": "iberty":  -- for debugging
 #endif
+#ifdef THREADED_RTS
+                             "pthread" :
+#endif
+
                            [],
         include_dirs   = if installing
                             then [ "$libdir/include"