autoconf
[Top][All Lists]
Advanced

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

Re: nonstandard library directories


From: Ed Hartnett
Subject: Re: nonstandard library directories
Date: Thu, 13 Jul 2006 09:29:57 -0600
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

address@hidden (Bob Proulx) writes:

> Edward L Platt wrote:
>> Peter O'Gorman wrote:
>> >Probably like this instead:
>> >./configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib"
>>
>> Thanks for the help everybody.  It looks like the problem I was  
>> really having was that I'm compiling for os x and gnu gettext and  
>> related functions are in a separate library (libintl) so needed to  
>> use the following environment:
>> 
>> export CFLAGS="-I/sw/include"
>> export LDFLAGS="-L/sw/lib -lintl"
>> export CXXFLAGS=$CFLAGS
>> export CPPFLAGS=$CXXFLAGS
>
> It is much better to pass those as arguments to configure rather than
> as environment variables.  Because then they will be used during
> recheck operations and things like that.  Better to do it the way
> Peter's example showed:
>

Excuse me, but what are "recheck operations?"

I have to give advice to a wide user base about how to do this, so I
want to make sure I understand why doing this on the configure command
line is better than setting environment variables.

And what about the case where you set the value before ./configure?

CPPFLAGS=-Dsomething ./configure

Thanks!

Ed
-- 
Ed Hartnett  -- address@hidden





reply via email to

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