Adding additional system paths to a custom GCC
Ian Lance Taylor
iant@google.com
Fri Nov 16 05:36:00 GMT 2012
On Thu, Nov 15, 2012 at 8:14 PM, Tim Schumacher <schumact@gmail.com> wrote:
>
> I am using Fedora linux. I would like to build a gcc-4.7.2 with additional
> "system paths". Meaning, I have an installation of the Boost C++ libraries
> installed at /usr/local/boost-1.52.0 and I would like to build a gcc that
> treats the boost include and lib dirs as system paths so that I don't have
> to specify -I and -L on all command lines compiling programs that use boost.
> I'm guessing there is some easy way to do this at configure time for GCC? I
> guess one way would be to re-build the boost libraries with the new compiler
> and specify the same --prefix that I used for the GCC tools. Any thoughts
> on this would be greatly appreciated!
You could use a shell script to pass the options you want. You could
set the environment variables CPLUS_INCLUDE_PATH and LIBRARY_PATH when
running the compiler. I don't think there is any simple way to add
directories when building GCC itself, though.
Ian
More information about the Gcc-help
mailing list