Skip to content

Commit a66bc85

Browse files
committed
projects/go-avahi: update RPATH to include /out for transitive dependency resolution
1 parent 418a8e3 commit a66bc85

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

projects/go-avahi/oss_fuzz_build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ compile_native_go_fuzzer ./fuzzer FuzzDNSTXT fuzz_dns_decode_txt
8383
compile_native_go_fuzzer ./fuzzer FuzzEntryGroupLifecycle fuzz_entry_group
8484
compile_native_go_fuzzer ./fuzzer FuzzServiceBrowserLifecycle fuzz_service_browser
8585

86-
# RPATH fix: use patchelf to ensure $ORIGIN is set for all binaries
87-
for fuzzer in fuzz_domain_normalize fuzz_domain_roundtrip fuzz_service_name fuzz_state_strings fuzz_string_array fuzz_client_lifecycle fuzz_dns_decode_a fuzz_dns_decode_aaaa fuzz_dns_decode_txt fuzz_entry_group fuzz_service_browser; do
88-
if [ -f "$OUT/$fuzzer" ]; then
89-
patchelf --set-rpath '$ORIGIN' "$OUT/$fuzzer"
86+
# RPATH fix: use patchelf to ensure $ORIGIN is set for all binaries AND libraries
87+
for f in "$OUT"/*; do
88+
if [[ "$f" != *.zip && -f "$f" ]]; then
89+
patchelf --set-rpath '$ORIGIN:/out' "$f" 2>/dev/null || true
9090
fi
9191
done

0 commit comments

Comments
 (0)