From efe902510519de7fe6bd7bb6ce524a97ab710fef Mon Sep 17 00:00:00 2001 From: edoapra Date: Thu, 12 Feb 2026 16:53:15 -0800 Subject: [PATCH] Macos: use otool instead of ldd --- travis/compile_nwchem.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/travis/compile_nwchem.sh b/travis/compile_nwchem.sh index 0bc1fb8485..9b0112e5cf 100755 --- a/travis/compile_nwchem.sh +++ b/travis/compile_nwchem.sh @@ -122,7 +122,11 @@ echo "$FOPT$FDOPT" cd $TRAVIS_BUILD_DIR/src $TRAVIS_BUILD_DIR/contrib/getmem.nwchem 1000 echo === ldd ==== - ldd ../bin/LINUX*/nwchem + if [[ "$os" == "Darwin" ]]; then + otool -L ../bin/MACX*/nwchem + else + ldd ../bin/LINUX*/nwchem + fi #caching mkdir -p $TRAVIS_BUILD_DIR/.cachedir/binaries/$NWCHEM_TARGET $TRAVIS_BUILD_DIR/.cachedir/files cp $TRAVIS_BUILD_DIR/bin/$NWCHEM_TARGET/nwchem $NWCHEM_EXECUTABLE