Skip to content

Commit

Permalink
prepend don't overwrite CXXFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Sep 15, 2024
1 parent 6b645ef commit d55d83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def build_extensions(self):
env = os.environ.copy()
env["PYTHON"] = sys.executable
env["PYTHON_INCLUDE"] = f'-I{sysconfig.get_path("include")}'
env["CXXFLAGS"] = "-O3 -Bstatic -Bdynamic -std=c++17"
env["CXXFLAGS"] = "-O3 -Bstatic -Bdynamic -std=c++17 " + env.get("CXXFLAGS", "")
env["LDFLAGS"] = env.get("LDFLAGS", "") + f" -Wl,-rpath,{_rpath}"
env["ORIGIN"] = "$ORIGIN" # if evaluated, it will still be '$ORIGIN'

Expand Down

0 comments on commit d55d83e

Please sign in to comment.