From 9ab1fa8bc9e3b93170b56ec99b29dde6d1f0cd53 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 12 Mar 2012 01:29:32 -0400 Subject: [PATCH] QA: detect pkg-config files that bleed LDFLAGS Signed-off-by: Mike Frysinger --- bin/misc-functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 261415150..d2de0a709 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -564,6 +564,13 @@ install_qa_check() { done done + # Look for leaking LDFLAGS into pkg-config files + f=$(egrep -sH '^Libs.*-Wl,(-O[012]|--hash-style)' "${ED}"/usr/*/pkgconfig/*.pc) + if [[ -n ${f} ]] ; then + eqawarn "QA Notice: pkg-config files with wrong LDFLAGS detected:" + eqawarn "${f//${D}}" + fi + # this should help to ensure that all (most?) shared libraries are executable # and that all libtool scripts / static libraries are not executable local j -- 2.26.2