Skip to content

Commit 6356190

Browse files
fix gfortran link path in dynamic_arch.yml
1 parent 4c8dcb3 commit 6356190

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/dynamic_arch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ jobs:
8989
echo "max_size = 300M" > ~/.ccache/ccache.conf
9090
echo "compression = true" >> ~/.ccache/ccache.conf
9191
ccache -s
92+
93+
- name: Add gfortran runtime to link path
94+
if: matrix.build == 'make' && runner.os == 'macOS'
95+
run: |
96+
GFORTRAN_LIBDIR=$(gfortran -print-file-name=libgfortran.dylib | xargs dirname)
97+
echo "Using gfortran runtime in $GFORTRAN_LIBDIR"
98+
# Preserve whatever LDFLAGS may already contain
99+
echo "LDFLAGS=${LDFLAGS:+$LDFLAGS }-L$GFORTRAN_LIBDIR" >> "$GITHUB_ENV"
92100
93101
- name: Build OpenBLAS
94102
run: |

0 commit comments

Comments
 (0)