check-elf-dynamic-objects: OpenSuSE uses DT_RUNPATH, not DT_RPATH

... like Fedora, so check for either.

Change-Id: I0e88c8e6e7634e7cc483474bc3f654e666c3bab2
This commit is contained in:
Michael Stahl 2016-10-11 18:03:14 +02:00
parent d698e6f73a
commit bc47854ebd

View file

@ -130,7 +130,7 @@ local file="$1"
;;
esac
if test "${skip}" = 0 && readelf -d "${file}" &> /dev/null ; then
rpath=$(readelf -d "${file}" | grep '(RPATH)' || true)
rpath=$(readelf -d "${file}" | grep '(\(RPATH\|RUNPATH\))' || true)
neededs=$(readelf -d "${file}" | grep '(NEEDED)' | sed -e 's/.*\[\(.*\)\]$/\1/')
neededsinternal=
for needed in ${neededs}