Skip to content

Commit

Permalink
also adjust install_libflang.sh to shared builds on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 18, 2023
1 parent 6097c61 commit c9e16a5
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions recipe/install_libflang.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#!/bin/bash
set -ex

if [[ "${target_platform}" == linux-* ]]; then
# copy symlink & its target, e.g. libFortranRuntime.so.16 & libFortranRuntime.so
cp $SRC_DIR/build/lib/libFortranRuntime*${SHLIB_EXT}* $PREFIX/lib
# same for libFortranDecimal
cp $SRC_DIR/build/lib/libFortranDecimal*${SHLIB_EXT}* $PREFIX/lib
else
# static builds on unix due to segfaults with shared ones
cp $SRC_DIR/build/lib/libFortranRuntime.a $PREFIX/lib
cp $SRC_DIR/build/lib/libFortranDecimal.a $PREFIX/lib
fi
# copy symlink & its target, e.g. libFortranRuntime.so.16 & libFortranRuntime.so
cp $SRC_DIR/build/lib/libFortranRuntime*${SHLIB_EXT}* $PREFIX/lib
# same for libFortranDecimal
cp $SRC_DIR/build/lib/libFortranDecimal*${SHLIB_EXT}* $PREFIX/lib

0 comments on commit c9e16a5

Please sign in to comment.