handle cross-compilers as well
authorMike Frysinger <vapier@gentoo.org>
Mon, 9 Jan 2006 02:32:06 +0000 (02:32 -0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 9 Jan 2006 02:32:06 +0000 (02:32 -0000)
svn path=/main/trunk/; revision=2552

bin/ebuild.sh

index 1f573a44f5d407611a08e7baa85eb60a638b0e0d..2d0a2b29cdfa4f4c39bfb417aa59da577c93cf34 100755 (executable)
@@ -1079,7 +1079,7 @@ dyn_install() {
                # 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 ${CHOST} in
+               case ${CTARGET:-${CHOST}} in
                        i?86*|ia64*|s390*|x86_64*)
                                f=$(scanelf -qyRF '%e %p' "${D}") ;;
                        *)