diff --git a/package_scripts/compile_static_boost.sh b/package_scripts/compile_static_boost.sh new file mode 100644 index 000000000..466283044 --- /dev/null +++ b/package_scripts/compile_static_boost.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Compile boost statically, with -fPIC to allow linking it into the mex +# module (which is a dynamic library). --disable-icu prevents depending +# on libicu, which is unneeded and would require then linking the mex +# module with it as well. We just stage instead of install, then the +# toolbox_package_unix.sh script uses the staged boost. +./b2 link=static threading=multi cxxflags=-fPIC cflags=-fPIC --disable-icu -a stage \ No newline at end of file diff --git a/package_scripts/toolbox_package_unix.sh b/package_scripts/toolbox_package_unix.sh index b78649e15..6f5cda526 100644 --- a/package_scripts/toolbox_package_unix.sh +++ b/package_scripts/toolbox_package_unix.sh @@ -7,6 +7,8 @@ if [ "$os" = "Linux" -a "$arch" = "x86_64" ]; then platform=lin64 elif [ "$os" = "Linux" -a "$arch" = "i686" ]; then platform=lin32 +elif [ "$os" = "Darwin" -a "$arch" = "x86_64" ]; then + platform=mac64 else echo "Unrecognized platform" exit 1