help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Compiling & installing programs as user: finding headers


From: Bob Proulx
Subject: Re: Compiling & installing programs as user: finding headers
Date: Tue, 24 Jun 2008 17:49:22 -0600
User-agent: Mutt/1.5.13 (2006-08-11)

Federico Zenith wrote:
> wine-1.0 $ env LDFLAGS="-L/home/me/usr/lib -lxml2 -lxslt"
> CFLAGS="-I/home/me/usr/include/libxml2/ -I/home/me/usr/include/"
> CPATH="/home/me/usr/include/libxml2/:/home/me/usr/include/" ./configure
> - --prefix=/home/me/usr/

Instead of passing in environment variables it is almost always better
to tell configure about them directly.  If configure knows about them
then this information is stored into the config.status and can be also
used when reconfiguring.  Therefore I suggest doing the above this
way:

  ./configure --prefix=/home/me/usr LDFLAGS="-L/home/me/usr/lib -lxml2 -lxslt" 
CFLAGS="-I/home/me/usr/include/libxml2/ -I/home/me/usr/include/" 
CPPFLAGS="/home/me/usr/include/libxml2/:/home/me/usr/include/"

And that includes a change from CPATH to CPPFLAGS which I think is
more appropriate.  See ./configure --help for a summary.

Bob




reply via email to

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