Skip to content

Commit

Permalink
Add linker flags to mac
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed Jan 13, 2025
1 parent a8efedf commit ea3a9ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def find_env() -> dict[str, str]:
f"-L{expected_omp_dir}",
"-lomp",
]
linker_math += ["-L/usr/lib/"]

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

fflags = [] + compiler_flags + compiler_openmp
ldflags = [] + linker_flags + linker_math + linker_openmp
Expand Down

0 comments on commit ea3a9ba

Please sign in to comment.