From ddde1657f4c01d48377ec7aa73bc605413ec6e29 Mon Sep 17 00:00:00 2001 From: sof Date: Thu, 31 Jan 2002 10:47:47 +0000 Subject: [PATCH] [project @ 2002-01-31 10:47:47 by sof] Pass -lpthread to linker when using a 'threaded' RTS --- ghc/driver/Makefile | 4 ++++ ghc/driver/PackageSrc.hs | 4 ++++ 2 files changed, 8 insertions(+) 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" -- 1.7.10.4