#3072: considerations for management of shared libs
--------------------------+-------------------------------------------------
 Reporter:  duncan        |           Type:  feature request 
   Status:  new           |       Priority:  low             
Milestone:  7.6.2         |      Component:  Package system  
  Version:  6.10.1        |       Keywords:                  
       Os:  Linux         |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown  |     Difficulty:  Unknown         
 Testcase:                |      Blockedby:                  
 Blocking:                |        Related:                  
--------------------------+-------------------------------------------------

Comment(by markwright):

 From: [http://hackage.haskell.org/trac/ghc/ticket/7062#comment:21]
 "GHC libraries do not set a RUNPATH or RPATH tag for other GHC libraries
 they depend on"
 I attached ghc-7.7.20121101-corelibs-rpath.patch to set the rpath in the
 ghc core libs, so they look like:


 {{{
 $ readelf --dynamic
 
/usr/lib64/ghc-7.7.20121101/containers-0.5.0.0/libHScontainers-0.5.0.0-ghc7.7.20121101.so

 Dynamic section at offset 0x1c37f0 contains 35 entries:
   Tag        Type                         Name/Value
  0x0000000000000001 (NEEDED)             Shared library:
 [libHSdeepseq-1.3.0.1-ghc7.7.20121101.so]
  0x0000000000000001 (NEEDED)             Shared library:
 [libHSarray-0.4.0.1-ghc7.7.20121101.so]
  0x0000000000000001 (NEEDED)             Shared library:
 [libHSbase-4.6.0.0-ghc7.7.20121101.so]
  0x0000000000000001 (NEEDED)             Shared library: [libHSinteger-
 gmp-0.5.0.0-ghc7.7.20121101.so]
  0x0000000000000001 (NEEDED)             Shared library: [libgmp.so.10]
  0x0000000000000001 (NEEDED)             Shared library: [libHSghc-
 prim-0.3.0.0-ghc7.7.20121101.so]
  0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
  0x000000000000000e (SONAME)             Library soname:
 [libHScontainers-0.5.0.0-ghc7.7.20121101.so]
  0x0000000000000010 (SYMBOLIC)           0x0
  0x000000000000000f (RPATH)              Library rpath:
 
[$ORIGIN/../deepseq-1.3.0.1:$ORIGIN/../array-0.4.0.1:$ORIGIN/../base-4.6.0.0:$ORIGIN
 /../integer-gmp-0.5.0.0:$ORIGIN/../ghc-prim-0.3.0.0:$ORIGIN/../rts-1.0]
  0x000000000000001d (RUNPATH)            Library runpath:
 
[$ORIGIN/../deepseq-1.3.0.1:$ORIGIN/../array-0.4.0.1:$ORIGIN/../base-4.6.0.0:$ORIGIN
 /../integer-gmp-0.5.0.0:$ORIGIN/../ghc-prim-0.3.0.0:$ORIGIN/../rts-1.0]
 ... snip ...
 $

 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3072#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to