Declare local CPPFLAGS to avoid multiple appends in cmake-multilib.
authorMichael Palimaka <kensington@gentoo.org>
Thu, 18 Dec 2014 16:39:08 +0000 (16:39 +0000)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 18 Dec 2014 16:39:08 +0000 (16:39 +0000)
eclass/ChangeLog
eclass/cmake-utils.eclass

index 121bd8293a1395c25bcaa61ce1cd141ca0800e80..5079388361ee23628dc21b5d5296da645b727d10 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1467 2014/12/18 14:35:03 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1468 2014/12/18 16:39:08 kensington Exp $
+
+  18 Dec 2014; Michael Palimaka <kensington@gentoo.org> cmake-utils.eclass:
+  Declare local CPPFLAGS to avoid multiple appends in cmake-multilib.
 
   18 Dec 2014; Davide Pesavento <pesa@gentoo.org> qt4-build-multilib.eclass:
   Fix breakage caused by recent multilib-build.eclass changes (bug 532510).
index 07f9b635149febf4741cff8f30ee5b0e7c47dae3..04c1c480808163aa73ef73474e962fad3f3914bd 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.112 2014/10/27 09:49:05 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.113 2014/12/18 16:39:08 kensington Exp $
 
 # @ECLASS: cmake-utils.eclass
 # @MAINTAINER:
@@ -450,6 +450,7 @@ enable_cmake-utils_src_configure() {
        if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then
                # Handle release builds
                if ! has debug ${IUSE//+} || ! use debug; then
+                       local CPPFLAGS=${CPPFLAGS}
                        append-cppflags -DNDEBUG
                fi
        fi