Re: Separate CPPFLAGS for static and shared libs

2008-07-22 Thread Vikram Ambrose
Ralf Wildenhues wrote: Hello Vikram, * Vikram Ambrose wrote on Mon, Jul 21, 2008 at 11:36:25PM CEST: Just ran into a problem, with our old solution, both the .a and the .so need to have -fPIC. Now how do i get separate CPPFLAGS to them when using libtool? You should be looking

Re: Separate CPPFLAGS for static and shared libs

2008-07-22 Thread Ralf Wildenhues
* Vikram Ambrose wrote on Tue, Jul 22, 2008 at 03:22:09PM CEST: Ralf Wildenhues wrote: * Vikram Ambrose wrote on Mon, Jul 21, 2008 at 11:36:25PM CEST: Just ran into a problem, with our old solution, both the .a and the .so need to have -fPIC. Now how do i get separate CPPFLAGS to them

Re: Separate CPPFLAGS for static and shared libs

2008-07-21 Thread Vikram Ambrose
Vikram Ambrose wrote: Ralf Wildenhues wrote: * Vikram Ambrose wrote on Thu, Jun 05, 2008 at 03:59:38PM CEST: Thanks all. However modifying the code is not a possibility. I do understand that the code is not designed properly. I am looking for a way to configure the build tools to

Re: Separate CPPFLAGS for static and shared libs

2008-07-21 Thread Ralf Wildenhues
Hello Vikram, * Vikram Ambrose wrote on Mon, Jul 21, 2008 at 11:36:25PM CEST: Just ran into a problem, with our old solution, both the .a and the .so need to have -fPIC. Now how do i get separate CPPFLAGS to them when using libtool? You should be looking into convenience archives, or, if

Re: Separate CPPFLAGS for static and shared libs

2008-06-05 Thread Vikram Ambrose
Roumen Petrov wrote: Vincent Torri wrote: On Wed, 4 Jun 2008, Ralf Wildenhues wrote: * 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

Re: Separate CPPFLAGS for static and shared libs

2008-06-05 Thread Ralf Wildenhues
* Vikram Ambrose wrote on Thu, Jun 05, 2008 at 03:59:38PM CEST: Thanks all. However modifying the code is not a possibility. I do understand that the code is not designed properly. I am looking for a way to configure the build tools to build the code properly instead of configuring the

Re: Separate CPPFLAGS for static and shared libs

2008-06-05 Thread Vikram Ambrose
Ralf Wildenhues wrote: * Vikram Ambrose wrote on Thu, Jun 05, 2008 at 03:59:38PM CEST: Thanks all. However modifying the code is not a possibility. I do understand that the code is not designed properly. I am looking for a way to configure the build tools to build the code properly

Separate CPPFLAGS for static and shared libs

2008-06-04 Thread Vikram Ambrose
Dear All, I have some code that I am trying to build with the aid of libtool, autoconf and automake. I require both a static and shared library of my code, and libtool provides this functionality beautifully. However I need to pass separate CPPFLAGS to the objects destined for the shared

Re: Separate CPPFLAGS for static and shared libs

2008-06-04 Thread Andreas Schwab
Vikram Ambrose [EMAIL PROTECTED] writes: Andreas Schwab wrote: Vikram Ambrose [EMAIL PROTECTED] writes: Can someone suggest a way I can produce both a static and shared library with libtool/autoconf/automake that are compiled with different CPPFLAGS? You can use #ifdef PIC.

Re: Separate CPPFLAGS for static and shared libs

2008-06-04 Thread Ralf Wildenhues
* 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

Re: Separate CPPFLAGS for static and shared libs

2008-06-04 Thread Vincent Torri
On Wed, 4 Jun 2008, Ralf Wildenhues wrote: * 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

Re: Separate CPPFLAGS for static and shared libs

2008-06-04 Thread Roumen Petrov
Vincent Torri wrote: On Wed, 4 Jun 2008, Ralf Wildenhues wrote: * 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