Skip to content

Commit

Permalink
Remove un-used code
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Oct 31, 2023
1 parent 6341ef2 commit 648df9b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/relenv_gdb/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ def build_gdb(prefix):
archive_name = str(src / pathlib.Path(url).name)
relenv.common.extract_archive(str(src), archive_name)
dir_name = archive_name.split(".tar")[0]
# os.environ["LDFLAGS"] = f"{os.environ['LDFLAGS']} '-Wl,-rpath=$$ORIGIN/../lib'"
# os.environ["LDFLAGS"] += f" -Wl,-rpath={os.environ['TOOLCHAIN_PATH']}/{os.environ['TRIPLET']}/sysroot/lib"
with pushd(src / dir_name):
subprocess.run(
[
Expand All @@ -87,11 +85,7 @@ def build_gdb(prefix):
"--with-separate-debug-dir=/usr/lib/debug",
]
)
# os.environ[
# "LDFLAGS"
# ] += f" -Wl,-rpath={os.environ['TOOLCHAIN_PATH']}/{os.environ['TRIPLET']}/sysroot/lib"
subprocess.run(["make"])
# subprocess.run(["patchelf", "--add-rpath", "$ORIGIN/../lib", "gdb/gdb"])
bins = ["gdb/gdb", "gdbserver/gdbserver", "gdbserver/libinproctrace.so"]
for _ in bins:
subprocess.run(
Expand All @@ -104,7 +98,6 @@ def build_gdb(prefix):
)
subprocess.run(["make", "install"])

# relenv.relocate.main(os.environ["RELENV_PATH"])
relenv.relocate.main(
f"{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb",
f"{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb/lib",
Expand Down

0 comments on commit 648df9b

Please sign in to comment.