[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Separate CPPFLAGS for static and shared libs

From: Vikram Ambrose
Subject: Re: Separate CPPFLAGS for static and shared libs
Date: Mon, 21 Jul 2008 17:36:25 -0400
User-agent: Thunderbird (X11/20080501)

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 build the code properly instead of configuring the code to get the build tools to build it properly.
If you are using GCC:

cat > my-fixup-header.h <<\EOF
/* This file maps the PIC define given by libtool
   to STATIC/SHARED needed by my legacy code */
#ifdef PIC
# define SHARED
# define STATIC
./configure CPPFLAGS="-include `pwd`/my-fixup-header.h"

Hope that helps.

Fantastic, thank you very much. I did not know of this feature.

Hopefully this maybe also thought of as an implicit feature request for the next release. libtool to read lib_la_* and additionally lib_a_* flags.

thank you Ralf and the rest of the libtool mailing list.


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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]