Skip to content

Commit

Permalink
symlink instead of copy for fortran module includes
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jun 5, 2024
1 parent 6cb1364 commit 9aeca5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipe/build-mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ make -j"${CPU_COUNT:-1}"
make install

# openmpi installs .mod files in the wrong prefix (/lib instead of /include)
ls -l $PREFIX/lib/*.mod
mv -v $PREFIX/lib/*.mod $PREFIX/include/
# symlink instead of copy to avoid breaking anything (unlikely)
for f in $PREFIX/lib/*.mod; do
modname=$(basename "$f")
ln -sv "../lib/${modname}" "$PREFIX/include/${modname}"
done

POST_LINK=$PREFIX/bin/.openmpi-post-link.sh
if [ -n "$build_with_ucx" ]; then
Expand Down

0 comments on commit 9aeca5f

Please sign in to comment.