#515: --extra-lib-dirs= should add -R/-rpath to hsc2hs calls ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: defect | Status: closed Priority: normal | Milestone: Cabal-1.8 Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: fixed Keywords: | Difficulty: easy (<4 hours) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed Comment: {{{ Sat Aug 29 00:37:04 BST 2009 Duncan Coutts <duncan@haskell.org> * Use -R flags for hsc2hs wherever we use -L flags on ELF platforms. This fixes use of hsc2hs in cases where things like libgmp is not on the system's dynamic linker path. It's ok to use rpath in the case of hsc2hs because the linked programs are run immediately and never installed. Tue Oct 6 22:13:26 BST 2009 Duncan Coutts <duncan@haskell.org> * Use -Wl,-R, for the gcc rpath flag. Apparently it was only gcc on Solaris that groks -R directly, so we have to use -Wl to pass it through to ld. Both GNU and Solaris ld grok -R, only GNU ld accepts -rpath. }}} -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/515#comment:1> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects