ghci dynamic linking

Simon Marlow simonmarhaskell at gmail.com
Fri Apr 27 06:01:49 EDT 2007


Frederik Eaton wrote:
> Hello,
> 
> I am wondering how to link a package with some dynamic libraries in a
> way that works with ghci. If I run the command
> 
> LD_PRELOAD=/lib/libgcc_s.so.1:/usr/lib/libstdc++.so.6 ghci -package mypackage
> 
> then it is successful; I am able to use package mypackage in ghci. But
> if I omit the LD_PRELOAD=... part then ghci complains about missing
> symbols. How do I configure my package so that the LD_PRELOAD=... part
> of the command is not necessary?

I believe you should be able to use extra-libraries in the .cabal file to get 
these libraries loaded.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list