summaryrefslogtreecommitdiff
path: root/rts/ghc.mk
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2009-05-19 12:08:01 +0000
committerDuncan Coutts <duncan@well-typed.com>2009-05-19 12:08:01 +0000
commit988bfabb5e8a3a743d03e57f2f25ca1008c6e6f1 (patch)
tree5b90375333661248a6ef7733cb728bd5c205ad48 /rts/ghc.mk
parent527f52a72acf214994921ad36de92f934e9632da (diff)
downloadhaskell-988bfabb5e8a3a743d03e57f2f25ca1008c6e6f1.tar.gz
Use shared lib mode -dynload deploy to build the rts and core shared libs
This is now the same as the old default. Currently we cannot embed rpaths because they would point to the build tree. We should embed rpaths relative to the $ORIGIN in future.
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r--rts/ghc.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index d0719ee550..fba236b88b 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -155,7 +155,8 @@ rts_$1_OBJS = $$(rts_$1_C_OBJS) $$(rts_$1_S_OBJS) $$(rts_$1_CMM_OBJS)
ifneq "$$(findstring dyn, $1)" ""
$$(rts_$1_LIB) : $$(rts_$1_OBJS) rts/libs.depend
$$(RM) $$@
- $$(rts_dist_HC) -shared -dynamic -no-auto-link-packages `cat rts/libs.depend` $$(rts_$1_OBJS) -o $$@
+ $$(rts_dist_HC) -shared -dynamic -dynload deploy \
+ -no-auto-link-packages `cat rts/libs.depend` $$(rts_$1_OBJS) -o $$@
else
$$(rts_$1_LIB) : $$(rts_$1_OBJS)
$$(RM) $$@