Building boost with different gcc version

前端 未结 4 1206
庸人自扰
庸人自扰 2020-12-24 02:07

I have access to server where I need to build boost 1.46. How can I force bootstrap.sh to use /usr/bin/gcc-4.4. By default it uses /usr/bin/gcc and I can\'t figure out how t

4条回答
  •  青春惊慌失措
    2020-12-24 02:55

    For people who like to know the answer for Boost 1.61 on OSX 10.11.6: Sean's answer did not work for me because of the ld: unknown option: -h error mentioned in this boost report. To make it work I replaced gcc by darwin in his command

    echo "using darwin : 6.2 : /usr/local/bin/g++-6 ; " >> tools/build/src/user-config.jam
    

    To compile and install it I used

    ./b2 --toolset=darwin-6.2 --prefix=$HOME/.local/ install
    

提交回复
热议问题