Skip to content

Commit

Permalink
fix build error for python bindings on some systems (chapel-lang#26330)
Browse files Browse the repository at this point in the history
This fixes the generated rpath string for the python bindings shared
library. There is a typo in the current version that creates separation
and omits a comma from the linker flags format. This can cause a build
error when installing Chapel in a prefix on some systems, like
perlmutter.

[reviewed by @jabraham17 - thanks!]
  • Loading branch information
arezaii authored Dec 2, 2024
2 parents 6626c07 + da6b202 commit 74ccb43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/chapel-py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@
LDFLAGS = []
LDFLAGS += [
"-L{}".format(chpl_lib_path),
"-Wl,-rpath,{}".format(chpl_lib_path),
"-lChplFrontendShared",
"-Wl,-rpath",
chpl_lib_path,
]

if str(chpl_variables.get("CHPL_SANITIZE")) == "address":
Expand Down

0 comments on commit 74ccb43

Please sign in to comment.