summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-06 02:53:38 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-06 02:53:38 +0000
commitbf1e6bcfda27ac0e4353f6698c92a6262dcb07e0 (patch)
tree189c2ed8a92e205dea7c26b54d18bcdce37b995a /bin/ebuild.sh
parentbaaedc7906ce2ab15fbf69900b45b46590b40346 (diff)
downloadportage-bf1e6bcfda27ac0e4353f6698c92a6262dcb07e0.tar.gz
portage-bf1e6bcfda27ac0e4353f6698c92a6262dcb07e0.tar.bz2
portage-bf1e6bcfda27ac0e4353f6698c92a6262dcb07e0.zip
only scan for exec stacks on linux/glibc hosts
svn path=/main/trunk/; revision=2819
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh19
1 files changed, 12 insertions, 7 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index a28d98e30..b369d1f38 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1147,14 +1147,19 @@ dyn_install() {
sleep 1
fi
- # Check for files with executable stacks, but only on arches which
- # are supported at the moment. Keep this list in sync with
- # http://hardened.gentoo.org/gnu-stack.xml (Arch Status)
+ # Also, executable stacks only matter on linux (and just glibc atm ...)
case ${CTARGET:-${CHOST}} in
- i?86*|ia64*|m68k*|powerpc64*|s390*|x86_64*)
- f=$(scanelf -qyRF '%e %p' "${D}") ;;
- *)
- f="" ;;
+ *-linux-gnu*)
+ # Check for files with executable stacks, but only on arches which
+ # are supported at the moment. Keep this list in sync with
+ # http://hardened.gentoo.org/gnu-stack.xml (Arch Status)
+ case ${CTARGET:-${CHOST}} in
+ i?86*|ia64*|m68k*|powerpc64*|s390*|x86_64*)
+ f=$(scanelf -qyRF '%e %p' "${D}") ;;
+ *)
+ f="" ;;
+ esac
+ ;;
esac
if [[ -n ${f} ]] ; then
# One more pass to help devs track down the source