summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-03-16 23:33:57 +0000
committerIan Lynagh <igloo@earth.li>2010-03-16 23:33:57 +0000
commita651264d58fdcd8d37e0215adc95444c41213525 (patch)
tree8e209561a2543a0b8f2cd82333da3e62a41c34fe /rts
parentf69bf6be6101d6b5d7952c384dd5eeb1917b4cdb (diff)
downloadhaskell-a651264d58fdcd8d37e0215adc95444c41213525.tar.gz
Don't use -Bsymbolic when linking the RTS
This makes the RTS hooks work when doing dynamic linking
Diffstat (limited to 'rts')
-rw-r--r--rts/ghc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index b238728e11..a7a2c1145f 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -165,7 +165,7 @@ ifneq "$$(findstring dyn, $1)" ""
ifeq "$$(HOSTPLATFORM)" "i386-unknown-mingw32"
$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) rts/libs.depend
"$$(RM)" $$(RM_OPTS) $$@
- "$$(rts_dist_HC)" -shared -dynamic -dynload deploy \
+ "$$(rts_dist_HC)" -package-name rts -shared -dynamic -dynload deploy \
-no-auto-link-packages `cat rts/libs.depend` $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) -o $$@
ifeq "$$(darwin_TARGET_OS)" "1"
# Ensure library's install name is correct before anyone links with it.
@@ -174,7 +174,7 @@ endif
else
$$(rts_$1_LIB) : $$(rts_$1_OBJS) rts/libs.depend
"$$(RM)" $$(RM_OPTS) $$@
- "$$(rts_dist_HC)" -shared -dynamic -dynload deploy \
+ "$$(rts_dist_HC)" -package-name rts -shared -dynamic -dynload deploy \
-no-auto-link-packages `cat rts/libs.depend` $$(rts_$1_OBJS) -o $$@
endif
else