Linking executables and the library of a Cabal package
description
John D. Ramsdell
ramsdell at mitre.org
Wed Oct 17 12:57:39 EDT 2007
Duncan Coutts <duncan.coutts at worc.ox.ac.uk> writes:
> The right way to solve this ...
I think the right way to solve this is to have Cabal generate a
package.conf file in dist/build for development whenever it
successfully builds a library. If people want to link executables in
package with the library in the package, they need only to add
-package-conf dist/build/package.conf -package PACKAGE
to their ghc-options property. If they prefer the current behavior,
they leave the ghc-options property as it is. With this scheme,
everybody gets what they want.
John
More information about the Libraries
mailing list