From: sof Date: Thu, 31 Jan 2002 10:47:47 +0000 (+0000) Subject: [project @ 2002-01-31 10:47:47 by sof] X-Git-Tag: Approximately_9120_patches~204 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ddde1657f4c01d48377ec7aa73bc605413ec6e29;p=ghc-hetmet.git [project @ 2002-01-31 10:47:47 by sof] Pass -lpthread to linker when using a 'threaded' RTS --- diff --git a/ghc/driver/Makefile b/ghc/driver/Makefile index a7667bf..cd27d6f 100644 --- a/ghc/driver/Makefile +++ b/ghc/driver/Makefile @@ -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)) diff --git a/ghc/driver/PackageSrc.hs b/ghc/driver/PackageSrc.hs index 486271a..6a1036a 100644 --- a/ghc/driver/PackageSrc.hs +++ b/ghc/driver/PackageSrc.hs @@ -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"