[Haskell-cafe] HDBC Roadmap

John Goerzen jgoerzen at complete.org
Fri Jan 6 16:14:28 EST 2006

On Fri, Jan 06, 2006 at 03:06:07PM -0600, Tom Hawkins wrote:
> Hi John,
> Thanks for releasing HDBC.  This is probably more of a GHC question, but 
> is there any way to staticly link in the Sqlite3 libraries with an 
> application that uses HDBC.Sqlite3?

Yes, you can do that.  I think that using ghc -optc -static will do what
you want.  Or some permutation thereof.  That will, of course, also link
in libc and everything else statically.

Alternatively, you can manually reference libsqlite3.a.  However, since
the Cabal package is compiled to link in sqlite3 automatically, you'll
have to hack your ghc package info first, I think.

Hopefully that will give you enough to get started at least.

-- John

More information about the Haskell-Cafe mailing list