Build with autoconf on osx
@@ -7,14 +7,17 @@ set -euo pipefail
# Copy zmq library without version if not already existing
+if [[ `uname` == Darwin ]]; then
+ export LDFLAGS="-Wl,-rpath,$PREFIX/lib $LDFLAGS"
# Using autoconf
-# ./autogen.sh
-# ./configure --prefix="$PREFIX"
-
+ ./autogen.sh
+ ./configure --prefix="$PREFIX"
+else
# Using cmake
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=$PREFIX ..
+fi
# Make all, run tests, then install
make all VERBOSE=1
