* Vikram Ambrose wrote on Wed, Jun 04, 2008 at 03:54:35PM CEST:
>
> However I need to pass separate CPPFLAGS to the objects destined for the  
> shared library as opposed to the objects destined for the library 
> archive.

As Andreas already replied, just use "#ifdef PIC" for shared and
"#ifndef PIC" for static code.  That usually works.

However.  If you use convenience archives, then be warned that they
by default contain PIC code only, and will happily add that to a static
library as well.

> But for some odd reason, whenever "make install", is  
> invoked, libfile.so is recompiled again (including all the individual  
> objects). Which is a little redundant but harmless nonetheless.

Yes, libtool isn't always strict enough in determining when relinking is
needed.  Generally you can use --enable-fast-install resp.
--disable-fast-install to prefer relinking at install time or at the
first time an uninstalled program is executed.

Cheers,
Ralf


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to