Skip to content

Commit

Permalink
freezer: fix rpath [linux] (#2693)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte committed Nov 19, 2024
1 parent ed9d7be commit 577587d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cx_Freeze/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,11 @@ def replace_needed(
def set_rpath(self, filename: str | Path, rpath: str) -> None:
"""Sets the rpath of the executable."""
self._set_write_mode(filename)
if rpath == "$ORIGIN/.":
rpath = "$ORIGIN"
rpath_list = rpath.split(":")
for i, rp in enumerate(rpath_list):
if rp == "$ORIGIN/.":
rpath_list[i] = "$ORIGIN"
rpath = ":".join(rpath_list)
if rpath == self.get_rpath(filename):
return
try:
Expand Down

0 comments on commit 577587d

Please sign in to comment.