On Wed, 2009-12-02 at 16:38 -0800, Howard B. Golden wrote: > At present, it is possible to say 'ghci -lpcre' or 'addDLL "lpcre"'. For > these to work, you have to be able to call the system linker from ghci > dynamically. (Therefore, I think it means replacing Linker.c with the > native system linker.)
The point is, technically we probably do not want "ghci -lpcre" to translate directly into a call to dlopen "libpcre.so". There should be another translation stage to give us "libpcre.so.0". Then that name --- corresponding to a fixed ABI --- should be kept in the package config so we keep linking to the same thing even if you install newer versions of the C lib. The problem is I don't know any sensible way to obtain "libpcre.so.0" from "libpcre.so". You can take an empty .o file and use the system linker to link it against -lpcre and then use ldd to see what it ended up picking. But I'm not sure that's so helpful. Duncan _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
