diff options
author | Alexander Gabert <pappy@gentoo.org> | 2003-10-09 19:36:29 +0000 |
---|---|---|
committer | Alexander Gabert <pappy@gentoo.org> | 2003-10-09 19:36:29 +0000 |
commit | 89b17524defa253add182000d349dd2b02ab0f25 (patch) | |
tree | 21032cc7ef6bdd26d3bd4b6aa69625fac69d1b6b /sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild | |
parent | added hardened-gcc hppa behaviour (diff) | |
download | gentoo-2-89b17524defa253add182000d349dd2b02ab0f25.tar.gz gentoo-2-89b17524defa253add182000d349dd2b02ab0f25.tar.bz2 gentoo-2-89b17524defa253add182000d349dd2b02ab0f25.zip |
added hardened-gcc hppa behaviour
Diffstat (limited to 'sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild')
-rw-r--r-- | sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild b/sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild index f2bc9af1ab75..8d0f9862f320 100644 --- a/sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild +++ b/sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild,v 1.7 2003/09/23 14:51:03 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/module-init-tools-0.9.12-r1.ebuild,v 1.8 2003/10/09 19:36:17 pappy Exp $ # This ebuild includes backwards compatability for stable 2.4 kernels IUSE="" @@ -64,8 +64,21 @@ src_compile() { filter-flags -fPIC - # http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml - has_version 'sys-devel/hardened-gcc' && append-flags '-yet_exec' + # http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml or #gentoo-hardened/irc.freenode + if [ "${ARCH}" != "hppa" ] && [ "${ARCH}" != "hppa64" ] && has_version "sys-devel/hardened-gcc" + then + append-flags "-yet_exec -fstack-protector" + fi + + if [ "${ARCH}" == "hppa" ] && has_version 'sys-devel/hardened-gcc' + then + append-flags "-yet_exec" + fi + + if [ "${ARCH}" == "hppa64" ] && has_version 'sys-devel/hardened-gcc' + then + append-flags "-yet_exec" + fi einfo "Building modutils..." cd ${WORKDIR}/modutils-${MODUTILS_PV} |