Skip to content

Commit

Permalink
edit the library compilers a little
Browse files Browse the repository at this point in the history
  • Loading branch information
tjira committed Aug 2, 2024
1 parent 7b58ae2 commit 3503bb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions script/libfftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ cp -r external/libfftw/install/include external/libfftw/install/lib external/
# remove redundant files
rm -rf external/libfftw external/include/*.f external/include/*.f03 external/lib/cmake external/lib/pkgconfig

# rename the library
mv external/lib/libfftw3.a external/lib/libfftw.a
# rename the shared library
cd external/lib && [[ -f libfftw3.so.3 ]] && mv libfftw3.so.3 libfftw.so && patchelf --set-soname libfftw.so libfftw.so && rm libfftw3.* ; cd -

# rename the static library
cd external/lib && [[ -f libfftw3.a ]] && mv libfftw3.a libfftw.a ; cd -
2 changes: 1 addition & 1 deletion script/libint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ cp -r external/libint/install/include external/libint/install/lib external/
rm -rf external/libint external/lib/cmake external/lib/pkgconfig

# rename the library
mv external/lib/libint2.a external/lib/libint.a
cd external/lib && [[ -f libint2.a ]] && mv libint2.a libint.a ; cd -

0 comments on commit 3503bb0

Please sign in to comment.