aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-12 01:29:32 -0400
committerMike Frysinger <vapier@gentoo.org>2012-03-12 01:29:32 -0400
commit9ab1fa8bc9e3b93170b56ec99b29dde6d1f0cd53 (patch)
tree26c57ad4d2dd12c976c79ab3077b9f7986b585b0 /bin
parentetc-update: ignore changes in whitespace (-b) for automerge (diff)
downloadportage-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>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/misc-functions.sh7
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