On Wed, 15 Jul 2009, Paolo Bonzini wrote: > On 07/15/2009 09:36 PM, Joseph S. Myers wrote: > > Before moving something out to a plugin (if we think that is technically > > appropriate for the particular code in question) we should have a way to > > build code, set up to be built as a plugin, into the compiler so that the > > -fplugin options find the built-in code, in a way that does not depend on > > plugins otherwise being supported on the host system; maybe somewhere in > > the source tree to put sources for plugins that get built into the > > compiler, or a configure option to point to such sources. > > It would be easy to switch from libdl to libltdl (which is independent from > libtool, and can be built as a host module from the toplevel makefile), and > use libtool -dlpreopen if this is desired.
Unless libltdl can be statically linked in, using it is a bad idea for other reasons as previously discussed at length. -- Joseph S. Myers jos...@codesourcery.com