summaryrefslogtreecommitdiff
path: root/lib/build-gcc.sh
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-15 00:22:00 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-15 00:22:00 -0600
commit72dd4d85bdd1f6da79dee405366311e6da96776b (patch)
treee3e0a0d6bb7bec06505965da4e845e12bbc63971 /lib/build-gcc.sh
parent64a9b42381c26baf24e58b40f50f0b253e551811 (diff)
parent96172669053bbba7263a370f109f70615049a0c6 (diff)
downloadfork-ledger-72dd4d85bdd1f6da79dee405366311e6da96776b.tar.gz
fork-ledger-72dd4d85bdd1f6da79dee405366311e6da96776b.tar.bz2
fork-ledger-72dd4d85bdd1f6da79dee405366311e6da96776b.zip
Merge branch 'release/v3.0.0-20120510'
Diffstat (limited to 'lib/build-gcc.sh')
-rwxr-xr-xlib/build-gcc.sh16
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\""