Skip to content

Commit

Permalink
Set rpath of gdbserver so relocate works properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Oct 26, 2023
1 parent 470cf6e commit 271ced3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/relenv_gdb/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ def build_gdb(prefix):
"gdb/gdb",
]
)
subprocess.run(
[
"patchelf",
"--add-rpath",
f"{os.environ['TOOLCHAIN_PATH']}/{os.environ['TRIPLET']}/sysroot/lib",
"gdbserver/gdbserver",
]
)
subprocess.run(["make", "install"])

# relenv.relocate.main(os.environ["RELENV_PATH"])
Expand Down

0 comments on commit 271ced3

Please sign in to comment.