From 78bad5ff23015b00de284b3eb9b409caf8891e7f Mon Sep 17 00:00:00 2001 From: mycae Date: Sep 28 2014 14:33:28 +0000 Subject: * Add workaround for gcc-4.9.1 build failure - wx bug 16359 --- diff --git a/3Depict.spec b/3Depict.spec index 0490d7d..e41f6fd 100644 --- a/3Depict.spec +++ b/3Depict.spec @@ -55,7 +55,9 @@ useful for general scalar valued point data purposes. %patch2 %build -%configure --disable-debug-checks --enable-openmp-parallel --enable-mgl2 --with-wx-config=wx-config-3.0 +#Bug in gcc causes loss of wxCommandEvent::clone(). Reportedly fixed in gcc 4.9.2 - use CXXFLAGS to workaround +#http://trac.wxwidgets.org/ticket/16359 +CXXFLAGS="${CXXFLAGS} -fno-devirtualize" %configure --disable-debug-checks --enable-openmp-parallel --enable-mgl2 --with-wx-config=wx-config-3.0 make %{?_smp_mflags} %install