Skip to content

Commit fcc6a31

Browse files
authored
[src, configure] Fix broken configuring static MKL (#4218)
1 parent a150273 commit fcc6a31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/configure

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,11 @@ configure_mkl_libraries() {
292292
for file in $mkl_libs; do
293293
local libfile=$mkllibdir/lib$file.$suffix
294294
check_exists $libfile
295-
linkline+=" -l$file"
295+
if ! $static; then
296+
linkline+=" -l$file"
297+
else
298+
linkline+=" $libfile"
299+
fi
296300
done
297301
linkline+=$link_post
298302

0 commit comments

Comments
 (0)