Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Install on Mac OS X using GCC
From: Matthias Vallentin (vallentin_at_[hidden])
Date: 2011-05-07 15:47:01


In short, I could resolve the issue as follows:

    (1) Create a file user-config.jam in the boost root with the
        following contents:

            using darwin
                : std0x
                : "/opt/local/bin/g++"
                : <cxxflags>-std=gnu++0x
                ;

    (2) Because non-Apple versions of g++ do not support
        -no-cpp-precomp, we need to remove this option in file
        tools/build/v2/tools/darwin.jam. In line 485, change

            flags darwin.compile OPTIONS : -no-cpp-precomp -gdwarf-2 ;

        to

            flags darwin.compile OPTIONS : -gdwarf-2 ;

    (3) Now build Boost with
            
            ./bootstrap.sh
            ./bjam --with-toolset=darwin-std0x

Obviously this is not a clean solution, but my Boost Build knowledge is
quite limited to come up with the right approach. What would be the
right way to do fix this?

    Matthias


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net