From: Mike Frysinger Date: Mon, 12 Mar 2012 05:29:32 +0000 (-0400) Subject: QA: detect pkg-config files that bleed LDFLAGS X-Git-Tag: v2.2.0_alpha91~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9ab1fa8bc9e3b93170b56ec99b29dde6d1f0cd53;p=portage.git QA: detect pkg-config files that bleed LDFLAGS Signed-off-by: Mike Frysinger --- 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