mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-24 09:40:53 +00:00
Fix RUNPATH in tracy-profiler AppImage
patchelf the stripped binary to /../lib, collapsing the RUNPATH to the single intended entry. The wayland .pc files baked an absolute build-host path and a trailing empty component into RUNPATH; the former leaks the build environment and could shadow bundled libs on the target, the latter can cause cwd library searches on older glibc. Add patchelf to the appimage workflow's apt install list.
This commit is contained in:
2
.github/workflows/appimage.yml
vendored
2
.github/workflows/appimage.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
build-essential cmake ninja-build meson pkg-config git ca-certificates \
|
||||
curl file desktop-file-utils nodejs \
|
||||
curl file desktop-file-utils nodejs patchelf \
|
||||
libegl-dev libxkbcommon-dev libdbus-1-dev libssl-dev \
|
||||
libffi-dev libexpat1-dev
|
||||
- name: Trust git repo
|
||||
|
||||
@@ -48,6 +48,7 @@ mkdir -p "$APPDIR/usr/bin" "$APPDIR/usr/lib" \
|
||||
|
||||
cp "$BUILD/profiler/tracy-profiler" "$APPDIR/usr/bin/"
|
||||
strip "$APPDIR/usr/bin/tracy-profiler"
|
||||
patchelf --set-rpath '$ORIGIN/../lib' "$APPDIR/usr/bin/tracy-profiler"
|
||||
cp "$PREFIX/lib/libwayland-client.so.0" \
|
||||
"$PREFIX/lib/libwayland-cursor.so.0" \
|
||||
"$PREFIX/lib/libwayland-egl.so.1" \
|
||||
|
||||
Reference in New Issue
Block a user