build-icc.sh 790 B

123456789101112131415161718
  1. #!/bin/sh
  2. # This build script is for OS X Lion users who have compiled openmpi and
  3. # clang-3.1 from MacPorts. I build my own Boost instead of using MacPorts'
  4. # Boost in order to get better debugging support, and to link with libc++.
  5. export PATH=$PATH:/opt/local/lib/openmpi/bin
  6. cat > ~/user-config.jam <<EOF
  7. using intel : : "/opt/intel/bin/icc" : ;
  8. EOF
  9. # jww (2012-04-24): This is still linking against /usr/lib/libc++.1.dylib
  10. # instead of /usr/local/lib/libc++.1.dylib
  11. make CXX=icc LD=icc CC=icc AR=xiar OPTJ=-j20 \
  12. BOOST_TOOLSET=intel DIR_SUFFIX=intel \
  13. 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\""