Skip to content

Commit ea3a9ba

Browse files
committed
Add linker flags to mac
1 parent a8efedf commit ea3a9ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_compile.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def find_env() -> dict[str, str]:
108108
f"-L{expected_omp_dir}",
109109
"-lomp",
110110
]
111+
linker_math += ["-L/usr/lib/"]
111112

112113
else:
113114
print(f"Expected OpenMP dir not found: {expected_omp_dir}, compiling without OpenMP")
@@ -117,7 +118,7 @@ def find_env() -> dict[str, str]:
117118
# FreeBSD specific flags
118119
if "freebsd" in sys.platform:
119120
# Location of BLAS / Lapack for FreeBSD 14
120-
linker_math += ["/usr/local/lib/"]
121+
linker_math += ["-L/usr/local/lib/"]
121122

122123
fflags = [] + compiler_flags + compiler_openmp
123124
ldflags = [] + linker_flags + linker_math + linker_openmp

0 commit comments

Comments
 (0)