On Thu, Nov 15, 2012 at 8:14 PM, Tim Schumacher <schumact@xxxxxxxxx> 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