[arch-haskell] Dynamic executables and RPATH

Magnus Therning magnus at therning.org
Fri Nov 15 21:49:19 UTC 2013


On Mon, Nov 11, 2013 at 06:21:51AM +0100, Magnus Therning wrote:
> On Sun, Nov 10, 2013 at 10:32:25PM +0100, Fabien Dubosson wrote:
> > > Would you verify that passing --ghc-options when configuring a package
> > > adds the options to 'ghc-options:' if present in the .cabal file?
> > 
> > With pleasure. I made a «dummy» program to verify that (files here
> > [1]):
> > 
> >   1. A dummy `Main.hs` executable which uses an external library and
> >      also generates GHC warnings.
> >   2. A simple `test-ghc-opts.cabal` file which has a `ghc-options:`
> >      to display warnings
> >   3. A `build.sh` script which configures the program with a
> >      `ghc-options` to remove the [rpath] of dynamic linking.
> > 
> > If both the warnings are displayed and the [rpath] doesn't exist, it
> > means that both ways of giving `ghc-options` are working side by
> > side. It is the case on my computer! But I let you verify my scripts
> > to be sure that I'm doing the test correctly.
> > 
> > [1] https://gist.github.com/StreakyCobra/0067d15fd74ebf8bf5e0
> 
> Excellent, then that is indeed a better route than the one I embarked
> on.

Another proposal here: http://is.gd/EbUJXu-

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality.
     -- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/arch-haskell/attachments/20131115/697c95ca/attachment.sig>


More information about the arch-haskell mailing list