Skip to content

Commit

Permalink
try appending CXXFLAGS and LDFLAG changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Sep 15, 2024
1 parent 95648d7 commit 2ffe4b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ def build_extensions(self):
and "CONDA_PREFIX" not in os.environ
):
os.environ["CXXFLAGS"] = (
f"-I{os.environ['HOMEBREW_PREFIX']}/include "
+ os.environ.get("CXXFLAGS", "")
os.environ.get("CXXFLAGS", "")
+ f" -I{os.environ['HOMEBREW_PREFIX']}/include"
)
os.environ["LDFLAGS"] = (
f"-L{os.environ['HOMEBREW_PREFIX']}/lib "
+ os.environ.get("LDFLAGS", "")
os.environ.get("LDFLAGS", "")
+ f" -L{os.environ['HOMEBREW_PREFIX']}/lib"
)

# RPATH is set for shared libraries in the following locations:
Expand Down

0 comments on commit 2ffe4b5

Please sign in to comment.