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

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 into

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, i

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-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 instead

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 th

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-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 al

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 us

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 P

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 ca

Re: Separate CPPFLAGS for static and shared libs

2008-06-04 Thread Vikram Ambrose
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. Andreas. I looked up fpic and fPIC in the gc

Re: Separate CPPFLAGS for static and shared libs

2008-06-04 Thread Andreas Schwab
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. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products