Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/301b37255fb9ea3abd634cf9caf774c6dab647b7

>---------------------------------------------------------------

commit 301b37255fb9ea3abd634cf9caf774c6dab647b7
Author: Simon Marlow <[email protected]>
Date:   Wed Jul 11 14:32:47 2012 +0100

    Link the extra-libraries when making a .so for a package (#7062)
    
    I don't think I completely understand what's going on here, but this
    does seem to fix it, and morally it seems like the right thing.

>---------------------------------------------------------------

 rules/build-package-way.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rules/build-package-way.mk b/rules/build-package-way.mk
index 176dc9b..cf89e1e 100644
--- a/rules/build-package-way.mk
+++ b/rules/build-package-way.mk
@@ -76,6 +76,7 @@ else
 $$($1_$2_$3_LIB) : $$($1_$2_$3_ALL_OBJS) $$(ALL_RTS_LIBS) 
$$($1_$2_$3_DEPS_LIBS)
        $$(call cmd,$1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) $$($1_$2_$3_ALL_OBJS) \
          -shared -dynamic -dynload deploy \
+        $$(addprefix -l,$$($1_$2_EXTRA_LIBRARIES)) \
             -dylib-install-name $(ghclibdir)/`basename "$$@" | sed 
's/^libHS//;s/[-]ghc.*//'`/`basename "$$@"` \
          -no-auto-link-packages \
          -o $$@



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to