Re: Compiling & installing programs as user: finding headers

[email protected] (Bob Proulx)
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.