From 9762d3f55df73a6cefd1b2885d9d875343e440f3 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 7 Oct 2018 09:46:09 -0400 Subject: [PATCH] dev-python/sip: add -fno-strict-aliasing for python2 Package-Manager: Portage-2.3.50_p14, Repoman-2.3.11_p21 Signed-off-by: Mike Gilbert --- dev-python/sip/sip-4.19.12.ebuild | 6 +++++- dev-python/sip/sip-4.19.13.ebuild | 4 ++++ dev-python/sip/sip-4.19.8.ebuild | 6 +++++- dev-python/sip/sip-4.9999.ebuild | 6 +++++- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/dev-python/sip/sip-4.19.12.ebuild b/dev-python/sip/sip-4.19.12.ebuild index 6707912b3761..3313a4fac4da 100644 --- a/dev-python/sip/sip-4.19.12.ebuild +++ b/dev-python/sip/sip-4.19.12.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -69,6 +69,10 @@ src_prepare() { src_configure() { configuration() { + if ! python_is_python3; then + local CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + local myconf=( "${PYTHON}" "${S}"/configure.py diff --git a/dev-python/sip/sip-4.19.13.ebuild b/dev-python/sip/sip-4.19.13.ebuild index 728a604c424b..3313a4fac4da 100644 --- a/dev-python/sip/sip-4.19.13.ebuild +++ b/dev-python/sip/sip-4.19.13.ebuild @@ -69,6 +69,10 @@ src_prepare() { src_configure() { configuration() { + if ! python_is_python3; then + local CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + local myconf=( "${PYTHON}" "${S}"/configure.py diff --git a/dev-python/sip/sip-4.19.8.ebuild b/dev-python/sip/sip-4.19.8.ebuild index 973f1ae60a02..bd65f8202bbf 100644 --- a/dev-python/sip/sip-4.19.8.ebuild +++ b/dev-python/sip/sip-4.19.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -69,6 +69,10 @@ src_prepare() { src_configure() { configuration() { + if ! python_is_python3; then + local CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + local myconf=( "${PYTHON}" "${S}"/configure.py diff --git a/dev-python/sip/sip-4.9999.ebuild b/dev-python/sip/sip-4.9999.ebuild index 3fe2c1981bd0..4df03eb6f4e8 100644 --- a/dev-python/sip/sip-4.9999.ebuild +++ b/dev-python/sip/sip-4.9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -69,6 +69,10 @@ src_prepare() { src_configure() { configuration() { + if ! python_is_python3; then + local CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + local myconf=( "${PYTHON}" "${S}"/configure.py -- 2.26.2