Skip to content

Instantly share code, notes, and snippets.

@jimporter
Last active August 7, 2022 20:10
Show Gist options
  • Select an option

  • Save jimporter/10442880 to your computer and use it in GitHub Desktop.

Select an option

Save jimporter/10442880 to your computer and use it in GitHub Desktop.

Revisions

  1. Jim Porter revised this gist Jul 29, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build-boost-libc++
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ SRC_DIR=$HOME/src/boost_1_55_0
    INSTALL_DIR=$HOME

    cd $SRC_DIR
    ./bootstrap.sh --with-toolset=clang --prefix=/home/jim
    ./bootstrap.sh --with-toolset=clang --prefix=$INSTALL_DIR
    ./b2 clean
    ./b2 toolset=clang cxxflags="-std=c++1y -stdlib=libc++" linkflags="-stdlib=libc++" --prefix=$INSTALL_DIR -j 4 stage release
    ./b2 install toolset=clang cxxflags="-std=c++1y -stdlib=libc++" linkflags="-stdlib=libc++" --prefix=$INSTALL_DIR
  2. Jim Porter revised this gist Apr 11, 2014. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions build-boost-libc++
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,11 @@
    #!/bin/sh

    # First, build libc++ See <http://libcxx.llvm.org/>, "Build on Linux using CMake
    # and libsupc++." and substitute libsupc++ for libstdc++.
    # and libsupc++." and substitute libsupc++ for libstdc++. NOTE: You'll probably
    # need to explicitly link libsupc++ when you compile your own code!
    #
    # Next, download Boost and extract it somewhere. Set SRC_DIR to that location.
    SRC_DIR=/path/to/boost-src
    SRC_DIR=$HOME/src/boost_1_55_0

    # Set this to be the install prefix. "/usr" is also a good choice.
    INSTALL_DIR=$HOME
  3. Jim Porter created this gist Apr 11, 2014.
    16 changes: 16 additions & 0 deletions build-boost-libc++
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #!/bin/sh

    # First, build libc++ See <http://libcxx.llvm.org/>, "Build on Linux using CMake
    # and libsupc++." and substitute libsupc++ for libstdc++.
    #
    # Next, download Boost and extract it somewhere. Set SRC_DIR to that location.
    SRC_DIR=/path/to/boost-src

    # Set this to be the install prefix. "/usr" is also a good choice.
    INSTALL_DIR=$HOME

    cd $SRC_DIR
    ./bootstrap.sh --with-toolset=clang --prefix=/home/jim
    ./b2 clean
    ./b2 toolset=clang cxxflags="-std=c++1y -stdlib=libc++" linkflags="-stdlib=libc++" --prefix=$INSTALL_DIR -j 4 stage release
    ./b2 install toolset=clang cxxflags="-std=c++1y -stdlib=libc++" linkflags="-stdlib=libc++" --prefix=$INSTALL_DIR