summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-25 01:52:43 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-05-25 01:52:43 -0500
commited150182fba35c605aafaf418aa18babf4901d48 (patch)
treef4469e1dc36e3f6fe6fd29ef8342e8488a101124 /lib
parentefee3d324499befce508dddbf4c83dad154c442e (diff)
downloadfork-ledger-ed150182fba35c605aafaf418aa18babf4901d48.tar.gz
fork-ledger-ed150182fba35c605aafaf418aa18babf4901d48.tar.bz2
fork-ledger-ed150182fba35c605aafaf418aa18babf4901d48.zip
Added script for building Boost with icc
Diffstat (limited to 'lib')
-rwxr-xr-xlib/build-icc.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/build-icc.sh b/lib/build-icc.sh
new file mode 100755
index 00000000..406397de
--- /dev/null
+++ b/lib/build-icc.sh
@@ -0,0 +1,17 @@
+#!/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 intel : : "/opt/intel/bin/icc" : ;
+EOF
+
+# jww (2012-04-24): This is still linking against /usr/lib/libc++.1.dylib
+# instead of /usr/local/lib/libc++.1.dylib
+make CXX=icc LD=icc CC=icc AR=xiar OPTJ=-j20 \
+ BOOST_TOOLSET=intel DIR_SUFFIX=intel \
+ BOOST_DEFINES="-sINTEL_PATH=/opt/intel/bin -sINTEL_VERSION=12 -sICU_PATH=/usr/local cxxflags=\"-I/usr/local/include -I/opt/local/include\" linkflags=\"-L/usr/local/lib -L/opt/local/lib\""