libtool
[Top][All Lists]
Advanced

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

Re: Separate CPPFLAGS for static and shared libs


From: Ralf Wildenhues
Subject: Re: Separate CPPFLAGS for static and shared libs
Date: Thu, 5 Jun 2008 17:27:19 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* 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
#else
# define STATIC
#endif
EOF
./configure CPPFLAGS="-include `pwd`/my-fixup-header.h"

Hope that helps.

Cheers,
Ralf




reply via email to

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