app-text/openjade: fix build with clang and older gcc
authorFelix Janda <felix.janda@posteo.de>
Sat, 26 Nov 2016 19:01:52 +0000 (14:01 -0500)
committerDavid Seifert <soap@gentoo.org>
Sun, 27 Nov 2016 08:37:48 +0000 (09:37 +0100)
Gentoo-Bug: https://bugs.gentoo.org/596506
Closes: https://github.com/gentoo/gentoo/pull/2921

app-text/openjade/openjade-1.3.2-r6.ebuild

index f6bd9b76f5902037a11c704c4a4a7c7be9c98560..0bb418f7b93d1711ff1c5d83f86adfeac8656204 100644 (file)
@@ -52,8 +52,8 @@ src_prepare() {
 src_configure() {
        # avoids dead-store elimination optimization
        # leading to segfaults on GCC 6
-       # bug #592590
-       append-cxxflags -fno-lifetime-dse
+       # bug #592590 #596506
+       append-cxxflags $(test-flags-CXX -fno-lifetime-dse)
 
        # We need Prefix env, bug #287358
        export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"