projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fed216d
)
[project @ 2002-01-31 10:47:47 by sof]
author
sof
<unknown>
Thu, 31 Jan 2002 10:47:47 +0000
(10:47 +0000)
committer
sof
<unknown>
Thu, 31 Jan 2002 10:47:47 +0000
(10:47 +0000)
Pass -lpthread to linker when using a 'threaded' RTS
ghc/driver/Makefile
patch
|
blob
|
history
ghc/driver/PackageSrc.hs
patch
|
blob
|
history
diff --git
a/ghc/driver/Makefile
b/ghc/driver/Makefile
index
a7667bf
..
cd27d6f
100644
(file)
--- 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
(file)
--- 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"