I have a linux system at my workplace with pretty old packages and no root access. I'm compiling packages that I need from source with --prefix=[somewhere in homedir]. My problem is that I just can't find out how to convince configure to look for header files in a specific directory. The source is cpp. I tried with environment variables related to g++ and looking up flags and googling but I had no success. Can someone help me solve this?
+1
A:
The normal way to do this is --with-<feature>=<header directory>
.
Ignacio Vazquez-Abrams
2010-10-18 12:05:53
Thanks. It worked.
jakab922
2010-10-18 12:12:56
If it worked then don't leave us hanging here...
Ignacio Vazquez-Abrams
2010-10-18 12:28:57
A:
Usually you can pass additional compiler flags inside CXXFLAGS
. For gcc
you can specify more include directories with -I/some/dir
, e.g.
$ ./configure CXXFLAGS="-I/same/dir/"
where /some/dir/
contains your headers.
honk
2010-10-18 12:08:58