building against gmp in a nonstandard location

Ian Lynagh igloo at earth.li
Sun Mar 30 15:47:44 EDT 2008


On Sun, Mar 30, 2008 at 03:37:35PM -0400, Paul Jarc wrote:
> Ian Lynagh <igloo at earth.li> wrote:
> > the alternative would be to put the whole of $LDFLAGS into the Cabal
> > buildinfo, but that feels wrong to me.
> 
> Why so?  By setting LDFLAGS, isn't the user asking for exactly that -
> that those flags be used when linking?

Perhaps, but readline is only 1 component of what is being built. I
guess it would be unlikely to do any harm to use linker flags intended
for another component, though.

If we want to go this route then I think Cabal should pick up $LDFLAGS
automatically when building packages, though.


Thanks
Ian



More information about the Glasgow-haskell-users mailing list