diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-01 13:46:04 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-01 13:46:04 -0500 |
commit | 6a0daf634fa76ba61ea79e55e4d3f213aa27e306 (patch) | |
tree | bf282ed02f5b9411ab9cc91a9f89bb7d5f541001 | |
parent | 8f895fcda1fd3375f08bd29d3f975e6f112cee9a (diff) | |
download | fork-ledger-6a0daf634fa76ba61ea79e55e4d3f213aa27e306.tar.gz fork-ledger-6a0daf634fa76ba61ea79e55e4d3f213aa27e306.tar.bz2 fork-ledger-6a0daf634fa76ba61ea79e55e4d3f213aa27e306.zip |
Added script for building Boost with GCC
-rwxr-xr-x | lib/build-gcc.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/build-gcc.sh b/lib/build-gcc.sh new file mode 100755 index 00000000..af3decb8 --- /dev/null +++ b/lib/build-gcc.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# This build script is for OS X Lion users who have compiled openmpi and +# clang-3.1 from MacPorts. I build my own Boost instead of using MacPorts' +# Boost in order to get better debugging support, and to link with libc++. + +export PATH=$PATH:/opt/local/lib/openmpi/bin + +cat > ~/user-config.jam <<EOF +using clang-darwin : : "/usr/local/bin/clang++" : <cxxflags>-std=c++11 <include>/usr/local/include ; +EOF + +# jww (2012-04-24): This is still linking against /usr/lib/libc++.1.dylib +# instead of /usr/local/lib/libc++.1.dylib +make "$@" OPTJ=-j20 \ + BOOST_DEFINES="-sICU_PATH=/opt/local cxxflags=\"-I/opt/local/include\" linkflags=\"-L/opt/local/lib\"" |