dev-util/codeblocks: Fix segfault with GCC-6
authorPeter Levine <plevine457@gmail.com>
Sat, 22 Jul 2017 20:59:39 +0000 (16:59 -0400)
committerDavid Seifert <soap@gentoo.org>
Sun, 30 Jul 2017 16:04:02 +0000 (18:04 +0200)
Bug: https://bugs.gentoo.org/show_bug.cgi?id=625696
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/5175

dev-util/codeblocks/codeblocks-16.01.ebuild

index 9f14a95f0a1b9b23b822b6c727863d1daefe4806..047fa0975850475acd9c0da281112cf45efd46bf 100644 (file)
@@ -1,10 +1,11 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=6
+
 WX_GTK_VER="2.8"
 
-inherit eutils wxwidgets
+inherit eutils flag-o-matic wxwidgets
 
 DESCRIPTION="The open source, cross platform, free C++ IDE"
 HOMEPAGE="http://www.codeblocks.org/"
@@ -29,8 +30,10 @@ DEPEND="${RDEPEND}
 
 src_configure() {
        touch "${S}"/revision.m4 -r "${S}"/acinclude.m4
-
        setup-wxwidgets
+
+       append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks)
+
        econf \
                --with-wx-config="${WX_CONFIG}" \
                $(use_enable debug) \