From 548ab280e61680f6429e19ad8821040bd41d7484 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Wed, 27 Sep 2023 00:03:49 +0200 Subject: [PATCH] [webOS] Don't assume the RUNPATH to be available Currently, the RUNPATH is assumed to be available on the deployment device. Generally, this is not true and breaks with when compiling with a more recent buildroot-nc4 toolchain --- tools/webOS/verify-symbols.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/webOS/verify-symbols.sh b/tools/webOS/verify-symbols.sh index 6123e09a49a94..095570bb4735f 100755 --- a/tools/webOS/verify-symbols.sh +++ b/tools/webOS/verify-symbols.sh @@ -14,8 +14,7 @@ if [ ! -d "${WEBOS_ROOTFS}" ]; then exit 1 fi -lib_search_paths="$(objdump -p ${EXE} | grep RUNPATH | tr -s ' ' | cut -d ' ' -f 3)" -lib_search_paths="${lib_search_paths}:${WEBOS_ROOTFS}/lib:${WEBOS_ROOTFS}/usr/lib:${WEBOS_LD_LIBRARY_PATH}" +lib_search_paths="${WEBOS_ROOTFS}/lib:${WEBOS_ROOTFS}/usr/lib:${WEBOS_LD_LIBRARY_PATH}" required_syms=$(nm --dynamic --extern-only --undefined-only "${EXE}" | grep ' [U] ' | tr -s ' ' | cut -d ' ' -f 3)