summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2010-08-23 18:39:00 +0000
committerTiziano Müller <dev-zero@gentoo.org>2010-08-23 18:39:00 +0000
commit74c6d23336d882e01dc43848dffb20a33a79a960 (patch)
treef4021b936cb76cbb5ec5f8f3d1c685f43f53153e /dev-libs/poco/poco-1.3.6_p2.ebuild
parentUpdate dependencies ready for stabilization bug #334087. (diff)
downloadgentoo-2-74c6d23336d882e01dc43848dffb20a33a79a960.tar.gz
gentoo-2-74c6d23336d882e01dc43848dffb20a33a79a960.tar.bz2
gentoo-2-74c6d23336d882e01dc43848dffb20a33a79a960.zip
Changed order of -O2 replacement in sed call to avoid stripping an -O2 in our CFLAGS or (even worse) in LDFLAGS, resulting in unoptimized libs or a 'file not found error' linker error.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/poco/poco-1.3.6_p2.ebuild')
-rw-r--r--dev-libs/poco/poco-1.3.6_p2.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-libs/poco/poco-1.3.6_p2.ebuild b/dev-libs/poco/poco-1.3.6_p2.ebuild
index 4546741380da..f79d16d5be16 100644
--- a/dev-libs/poco/poco-1.3.6_p2.ebuild
+++ b/dev-libs/poco/poco-1.3.6_p2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/poco-1.3.6_p2.ebuild,v 1.1 2010/07/20 00:12:44 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/poco-1.3.6_p2.ebuild,v 1.2 2010/08/23 18:39:00 dev-zero Exp $
EAPI="2"
@@ -80,6 +80,7 @@ src_configure() {
|| die "configure failed"
sed -i \
+ -e 's|-O2||g' \
-e "s|CC = .*|CC = $(tc-getCC)|" \
-e "s|CXX = .*|CXX = $(tc-getCXX)|" \
-e "s|RANLIB = .*|RANLIB = $(tc-getRANLIB)|" \
@@ -89,7 +90,6 @@ src_configure() {
-e "s|CXXFLAGS = |CXXFLAGS = ${CXXFLAGS} |" \
-e "s|LINKFLAGS =|LINKFLAGS = ${LDFLAGS} |" \
-e "s|SHAREDOPT_LINK = -Wl,-rpath,\$(LIBPATH)|SHAREDOPT_LINK =|" \
- -e 's|-O2||g' \
build/config/Linux build/config/FreeBSD || die "sed failed"
sed -i -e "s|SHLIBFLAGS)|SHLIBFLAGS) ${LDFLAGS}|" build/rules/lib || die
}