[Haskell-cafe] Re: Cabal and linking with static libs (.a files)
Ketil Malde
ketil+haskell at ii.uib.no
Mon Jun 12 03:32:51 EDT 2006
Simon Marlow <simonmarhaskell at gmail.com> writes:
> What you actually want to do, I suspect, is to include verbatim copies
> of the .a dependencies in your (binary) Cabal package, to make it
> self-contained.
Exactly.
> But it's quite easy: just copy the .a files from /usr/lib (or
> wherever) and put them in the same place as your libHSpackage.a.
Thanks!
I managed to get it to work by following that advice, and also
renaming foo.a to libfoo.a, and linking with -lfoo.
-k
--
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe
mailing list