summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-01-04 13:59:56 +0100
committerFabian Groffen <grobian@gentoo.org>2017-01-04 14:00:06 +0100
commitcabe00aedf8c58d167cb42afd92731e469d442f7 (patch)
tree20ea8008865c55db66fbfc9e900235adb870f0ae /dev-util/pkgconfig
parentapp-emulation/docker-compose: Add new snapshot supporting compose version 3 (diff)
downloadgentoo-cabe00aedf8c58d167cb42afd92731e469d442f7.tar.gz
gentoo-cabe00aedf8c58d167cb42afd92731e469d442f7.tar.bz2
gentoo-cabe00aedf8c58d167cb42afd92731e469d442f7.zip
dev-util/pkgconfig: fix compilation of included glib on Solaris
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-util/pkgconfig')
-rw-r--r--dev-util/pkgconfig/pkgconfig-0.29.1.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-util/pkgconfig/pkgconfig-0.29.1.ebuild b/dev-util/pkgconfig/pkgconfig-0.29.1.ebuild
index 73f18e584aa1..2db724952dee 100644
--- a/dev-util/pkgconfig/pkgconfig-0.29.1.ebuild
+++ b/dev-util/pkgconfig/pkgconfig-0.29.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -49,6 +49,14 @@ src_prepare() {
else
elibtoolize # Required for FreeMiNT wrt #333429
fi
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # fix standards conflicts
+ sed -i -e 's/\(_XOPEN_SOURCE\(_EXTENDED\)\?\|__EXTENSIONS__\)/ \1_DISABLED/' \
+ glib/configure || die
+ sed -i -e '/#define\s\+_POSIX_SOURCE/d' \
+ glib/glib/giounix.c || die
+ fi
}
multilib_src_configure() {