Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions local/scipy_openblas64/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path
import sys
from textwrap import dedent

import platform

_HERE = Path(__file__).resolve().parent

Expand Down Expand Up @@ -68,8 +68,11 @@ def get_pkg_config(use_preloading=False):
``f"-L{get_library()}" so that at runtime this module must be imported before
the target module
"""
machine = platform.machine().lower()
extralib = ""
if sys.platform == "win32":
extralib = "-defaultlib:advapi32 -lgfortran -lquadmath"
if machine != "arm64":
extralib = "-defaultlib:advapi32 -lgfortran -lquadmath"
libs_flags = f"-L${{libdir}} -l{get_library()}"
else:
extralib = f"-lm -lpthread -lgfortran -lquadmath -L${{libdir}} -l{get_library()}"
Expand Down
Loading