Skip to content

Commit

Permalink
Inject LDFLAGS into CXXFLAGS as fastjet-contrib doesn't accept them
Browse files Browse the repository at this point in the history
This is the result of ./configure --help for fastjet-contrib:

```
Usage:
  configure [--help] [--list] [--fastjet-config=FILE] [--prefix=PREFIX] [CXX=...] [CXXFLAGS=...]
```
  • Loading branch information
matthewfeickert committed Sep 15, 2024
1 parent b527555 commit f37f954
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def build_extensions(self):
"./configure",
f"--fastjet-config={FASTJET}/fastjet-config",
f'CXX={env["CXX"]}',
"CXXFLAGS=-O3 -Bstatic -Bdynamic -std=c++17",
f'LDFLAGS={env["LDFLAGS"]}',
f'CXXFLAGS=-O3 -Bstatic -Bdynamic -std=c++17 {env["LDFLAGS"]}',
],
cwd=FASTJET_CONTRIB,
env=env,
Expand Down

0 comments on commit f37f954

Please sign in to comment.