diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 5ccf7c2..4168897 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -413,9 +413,9 @@ install_qa_check() { fi # Check for files built without respecting LDFLAGS - if [[ "${LDFLAGS}" == *,--hash-style=gnu* ]] && \ + if [[ "${LDFLAGS}" == *,--hash-style=sysv* ]] && \ ! has binchecks ${RESTRICT} ; then - f=$(scanelf -qyRF '#k%p' -k .hash "${ED}") + f=$(scanelf -qyRF '#k%p' -k '!.hash' "${ED}") if [[ -n ${f} ]] ; then echo "${f}" > "${T}"/scanelf-ignored-LDFLAGS.log if [ "${QA_STRICT_FLAGS_IGNORED-unset}" = unset ] ; then