Skip to content

Commit b4e336e

Browse files
committed
Make sure that no shared libraries or executables on linux ship with a /home runpath from the build host again
Also, update the liblldb.so runpath for swiftlang/llvm-project#6456.
1 parent c24baed commit b4e336e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test-snapshot-binaries/test-rpath-linux.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@
3838
# CHECK-SDE-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}:/usr/lib/swift/linux
3939
#
4040
# RUN: %{readelf} -d %{package_path}/usr/lib/liblldb.so | %{FileCheck} --check-prefix CHECK-LLDB %s
41-
# CHECK-LLDB: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}$ORIGIN/../lib/swift/linux
41+
# CHECK-LLDB: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}$ORIGIN/swift/linux
42+
#
43+
# RUN: find %{package_path} -name "lib*\.so" | xargs %{readelf} -d | %{FileCheck} --check-prefix CHECK-LIB %s
44+
# CHECK-LIB-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/home/
45+
#
46+
# RUN: find %{package_path}/usr/bin -type f | grep -Ev "\.py|\.txt|\.sh" | xargs %{readelf} -d | %{FileCheck} --check-prefix CHECK-BIN %s
47+
# CHECK-BIN-NOT: {{.*}} {{\(RPATH\)|\(RUNPATH\)}} {{.*}}/home/

0 commit comments

Comments
 (0)