Skip to content

Commit

Permalink
Fix rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Mar 21, 2024
1 parent 459895a commit 9241fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipe/build_openmm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ CMAKE_FLAGS+=" -DSWIG_EXECUTABLE=$(which swig)"
if [[ "$target_platform" == linux-* ]]; then
export LDFLAGS="$LDFLAGS -static-libstdc++ -Wl,--exclude-libs,ALL -Wl,-rpath,$ORIGIN/../OpenMM.libs/lib"
elif [[ "$target_platform" == osx-* ]]; then
export LDFLAGS="$LDFLAGS -Wl,-rpath,@loader_path/../OpenMM.libs/lib -Wl,-rpath,@loader_path"
export LDFLAGS="$LDFLAGS -Wl,-rpath,@loader_path/../OpenMM.libs/lib -Wl,-rpath,@loader_path/."
fi

# Build in subdirectory and install.
Expand Down

0 comments on commit 9241fdc

Please sign in to comment.