Skip to content

Commit aebe89c

Browse files
committed
hardcode path to libgfortran.dylib
1 parent af083b7 commit aebe89c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/build_steps.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ function before_build {
4848
install_gfortran
4949
EOF
5050
# re-export these, since we ran in a shell
51-
export FC="$(find /opt/gfortran/gfortran-darwin-${PLAT}-native/bin -name "*-gfortran")"
52-
local libgfortran="$(find /opt/gfortran/gfortran-darwin-${PLAT}-native/lib -name libgfortran.dylib)"
53-
local libdir=$(dirname $libgfortran)
54-
export FFLAGS="-L$libdir -Wl,-rpath,$libdir"
51+
export FC=$(find /opt/gfortran/gfortran-darwin-${PLAT}-native/bin -name "*-gfortran")
52+
local libdir=/opt/gfortran/gfortran-darwin-${PLAT}-native/lib
53+
export FFLAGS="-L${libdir} -Wl,-rpath,${libdir}"
5554
5655
# Build the objconv tool
5756
(cd ${ROOT_DIR}/objconv && bash ../tools/build_objconv.sh)

0 commit comments

Comments
 (0)