Skip to content

Commit edb34fc

Browse files
committed
Also patch rpath of executables
1 parent e4e67ac commit edb34fc

40 files changed

Lines changed: 36 additions & 0 deletions

GraphvizWrapper/graphvizfiles/cp-linux.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,13 @@ find "$TARGET_DIR" -type f -name "*.so*" | while read -r so_file; do
2828
patchelf --set-rpath '$ORIGIN' "$so_file" && echo "RPATH '\$ORIGIN' added to $so_file" || echo "Failed to patch $so_file"
2929
done
3030

31+
echo "Adding RPATH '\$ORIGIN' to all executables in $TARGET_DIR..."
32+
33+
find "$TARGET_DIR" -type f -perm -111 | while read -r exe_file; do
34+
echo "Processing: $exe_file"
35+
# Add or update RPATH to "."
36+
patchelf --set-rpath '$ORIGIN' "$exe_file" && echo "RPATH '\$ORIGIN' added to $exe_file" || echo "Failed to patch $exe_file"
37+
done
38+
3139
echo "RPATH update complete."
40+
8 KB
Binary file not shown.
8 KB
Binary file not shown.
8 KB
Binary file not shown.
8 KB
Binary file not shown.
8 KB
Binary file not shown.
8 KB
Binary file not shown.
8 KB
Binary file not shown.
8 KB
Binary file not shown.
8 KB
Binary file not shown.

0 commit comments

Comments
 (0)