summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ross <aross@gentoo.org>2006-10-02 13:06:34 +0000
committerAndrew Ross <aross@gentoo.org>2006-10-02 13:06:34 +0000
commitf7718c83933e6a9cb6ad3cfbf1e4ca7c76c5cd1e (patch)
treea5d461ca6145bb9c8b4b31b9fc630f7f997488d7
parentRemove entry for execstacks patch, which creeped in during a previous commit. (diff)
downloadaross-f7718c83933e6a9cb6ad3cfbf1e4ca7c76c5cd1e.tar.gz
aross-f7718c83933e6a9cb6ad3cfbf1e4ca7c76c5cd1e.tar.bz2
aross-f7718c83933e6a9cb6ad3cfbf1e4ca7c76c5cd1e.zip
Allow compilation with gcc 4.1 (bug #147876)
svn path=/; revision=15
-rw-r--r--app-emulation/xen/Manifest8
-rw-r--r--app-emulation/xen/xen-3.0.2-r1.ebuild10
2 files changed, 10 insertions, 8 deletions
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest
index efb64ce..83cd582 100644
--- a/app-emulation/xen/Manifest
+++ b/app-emulation/xen/Manifest
@@ -23,10 +23,10 @@ MD5 a3c0c26c30ce1271b439661b68ca9e74 files/xendomains-init 1671
RMD160 e2dbb7b4da5ff8be60532e5a393988f47f28c036 files/xendomains-init 1671
SHA256 19aac7da0ba103ae800ed10b7d151912b3a9476edf63c3651073a197ea291e49 files/xendomains-init 1671
DIST xen-3.0.2-src.tgz 4933621 RMD160 34e4431a981891319f8a5ea0c3f604e7d8d7d7af SHA1 b7e797048b516f8b385afd3da9ae2eded1b8033a SHA256 f18ffab16a457fa721d11933c75f8288f6958c88c2669857c7c11d5107ba2951
-EBUILD xen-3.0.2-r1.ebuild 2814 RMD160 01a8bb25e0fe3e5ec01dd1a7960824292c67f41b SHA1 abef50f1c222ed39501779f8ec6329e6d3f016f9 SHA256 1da738c97eed2919213cc381f526dea3ec6f7b41ff1a62e67dd91927f1e2f6c9
-MD5 d64d41ced637db24474ffd7b5e583344 xen-3.0.2-r1.ebuild 2814
-RMD160 01a8bb25e0fe3e5ec01dd1a7960824292c67f41b xen-3.0.2-r1.ebuild 2814
-SHA256 1da738c97eed2919213cc381f526dea3ec6f7b41ff1a62e67dd91927f1e2f6c9 xen-3.0.2-r1.ebuild 2814
+EBUILD xen-3.0.2-r1.ebuild 2973 RMD160 bd47c868aad14e66d072650c1d8ade3d7edd890c SHA1 b1d8832349844e1b381dc8e18bad30909c6a8ff3 SHA256 c7543ef2104c4186e480583d4594efc02d6e23d15a0b798edcf6462aa9106af6
+MD5 f5d31584ae2a495cd6482afbcc89ba8c xen-3.0.2-r1.ebuild 2973
+RMD160 bd47c868aad14e66d072650c1d8ade3d7edd890c xen-3.0.2-r1.ebuild 2973
+SHA256 c7543ef2104c4186e480583d4594efc02d6e23d15a0b798edcf6462aa9106af6 xen-3.0.2-r1.ebuild 2973
EBUILD xen-3.0.2.ebuild 2593 RMD160 b39ee760f76df5a62c1bc259b0b87eba40a4b336 SHA1 4d3efa5f481f588360205fd9e086e2890e2af8fa SHA256 d8c525fde493ac1110957d5ff13fbb3bd4dd57ebe2ab5605192176ddc4b055b3
MD5 c8f3f22e2059173683d3d5495c7e8f04 xen-3.0.2.ebuild 2593
RMD160 b39ee760f76df5a62c1bc259b0b87eba40a4b336 xen-3.0.2.ebuild 2593
diff --git a/app-emulation/xen/xen-3.0.2-r1.ebuild b/app-emulation/xen/xen-3.0.2-r1.ebuild
index 9624d65..9ea9e82 100644
--- a/app-emulation/xen/xen-3.0.2-r1.ebuild
+++ b/app-emulation/xen/xen-3.0.2-r1.ebuild
@@ -51,10 +51,12 @@ src_unpack() {
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
-i {} \;
fi
- if use hardened; then
- cd "${S}"
- epatch "${FILESDIR}/${PN}"-3.0.2-nopiessp.patch
- fi
+
+ for FLAG in -fno-stack-protector -fno-stack-protector-all -nopie -fnopie ;
+ do
+ test-flag-CC ${FLAG} && HARDFLAGS="${HARDFLAGS} ${FLAG}"
+ done
+ sed -i "s/^CFLAGS-y += -g -D__XEN__$/&\nCFLAGS-y += ${HARDFLAGS}/" "${S}"/xen/Rules.mk
}
src_compile() {