I am trying to build boost 1.45 using a local GCC compiler installation. I can’t make it use a different compiler command that the default “g++”. Here what happened so far:
In boost_1_45_0 source directory:
./bootstrap.sh --with-toolset=gcc --prefix=$INSTALL/boost-$TYPE
Then added the following line to “projct-config.jam”:
using gcc : 4.4.6 : [absolute path]/install/gcc-4.4.6/bin/g++ : ;
./bjam install --prefix=$INSTALL/boost-$TYPE
When bringing up the process list during building, I can see that the system’s default compiler command g++ gets used.
The problem was a previous definition of using which got in the way. This solves the problem:
project-config.jam: