diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-12 01:29:32 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-12 01:29:32 -0400 |
commit | 9ab1fa8bc9e3b93170b56ec99b29dde6d1f0cd53 (patch) | |
tree | 26c57ad4d2dd12c976c79ab3077b9f7986b585b0 | |
parent | 647bc427421ef6ad03f8ec2d4a2aad6b6b6c4925 (diff) | |
download | portage-9ab1fa8bc9e3b93170b56ec99b29dde6d1f0cd53.tar.gz portage-9ab1fa8bc9e3b93170b56ec99b29dde6d1f0cd53.tar.bz2 portage-9ab1fa8bc9e3b93170b56ec99b29dde6d1f0cd53.zip |
QA: detect pkg-config files that bleed LDFLAGS
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | bin/misc-functions.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |