Sorry, forgot to CC the list. ---------------------- Forwarded Message: --------------------- From: [EMAIL PROTECTED] To: "Gary V. Vaughan" <[EMAIL PROTECTED]> Subject: Re: Linking static libraries into shared library Date: Fri, 24 Mar 2000 15:59:50 +0000 > On Thu, Mar 23, 2000 at 09:12:54PM -0500, Jason Day wrote: > > On Fri, Mar 24, 2000 at 12:43:24AM +0000, Gary V. Vaughan wrote: > > > On Thu, Mar 23, 2000 at 05:38:35PM -0500, Jason Day wrote: [snip] > > Can I do this after the library has been installed? > > No. Nor does it make sense to be able to really. If you want to > install the static library, then don't create it as a convenience > library, just as a standard `ar/ranlib' archive: > > lib_LTLIBRARIES = libnotconvenience.la > libnotconvenience_la_LDFLAGS = -static > > Once this is installed, you can link the shared library with the > installed .la file, but the objects won't be added to the shared lib, > the shared.la will record the dependency so that when you later come > to link an application with shared.la, you don't list > libnotconvenience.la on the application link line, libtool will add it > automatically, and the objects will be added (statically) to the > applicatioon. Hmm. If I understand this correctly, I don't think this is exactly what I want, either. I'm writing a plugin for an application which dlopen's its plugins when it starts up. The application author has made available a plugin library (static, but pic), which I link with my code to build the plugin. This works fine using gcc on linux, but I can't get libtool to do it. Can libtool do this? I really appreciate your help in this, by the way. Thanks, Jason > > Ofcourse you will need libtool-1.3b or better for this to work =)O| > > Cheers, > Gary. > -- > ___ _ ___ __ _ mailto:[EMAIL PROTECTED] > / __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ [EMAIL PROTECTED] > | (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \ > \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/ > home page: /___/ /___/ gpg public key: > http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc >