#!/bin/bash

./configure --prefix="${PREFIX}" --enable-shared --with-libctl=no --with-hermitian-eps

make

if [ `uname` == Darwin ]; then
    install_name_tool -add_rpath ${PREFIX}/lib ${SRC_DIR}/tests/.libs/blastest
    install_name_tool -add_rpath ${PREFIX}/lib ${SRC_DIR}/tests/.libs/maxwell_test
    install_name_tool -add_rpath ${PREFIX}/lib ${SRC_DIR}/tests/.libs/eigs_test
fi

make check
make install

rm ${PREFIX}/lib/libmpb.a

#!/bin/bash

./configure --prefix="${PREFIX}" --enable-shared --with-libctl=no --with-hermitian-eps

make
make check
make install

rm ${PREFIX}/lib/libmpb.a

--- 
+++ 
@@ -3,13 +3,6 @@
 ./configure --prefix="${PREFIX}" --enable-shared --with-libctl=no --with-hermitian-eps
 
 make
-
-if [ `uname` == Darwin ]; then
-    install_name_tool -add_rpath ${PREFIX}/lib ${SRC_DIR}/tests/.libs/blastest
-    install_name_tool -add_rpath ${PREFIX}/lib ${SRC_DIR}/tests/.libs/maxwell_test
-    install_name_tool -add_rpath ${PREFIX}/lib ${SRC_DIR}/tests/.libs/eigs_test
-fi
-
 make check
 make install
 
Add rpath for tests on MacOS
