diff --git a/galera.spec b/galera.spec index 1038432..ed2210f 100644 --- a/galera.spec +++ b/galera.spec @@ -38,13 +38,31 @@ replication engine see http://www.codership.com. %patch0 -p1 %build -CPPFLAGS="%{optflags}" +%{set_build_flags} + +# FTBFS with the GLIBCXX_ASSERTIONS; #1546787 CPPFLAGS=`echo $CPPFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" ` -export CPPFLAGS +CFLAGS=`echo $CFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" ` +CXXFLAGS=`echo $CXXFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" ` +export CPPFLAGS CFLAGS CXXFLAGS # Print help: -#scons-3 --help -#scons-3 -H +# scons-3 --help +# scons-3 -H + +# Possibly usefull arguments: +# --debug=findlibs +# --debug=stacktrace +# --warn=all +# debug=0 + +%if 0%{?fedora} == 30 && %_arch == ppc64le +# Workaround for a bug which was solved in Rawhide +scons-3 %{?_smp_mflags} strict_build_flags=0 +%else +scons-3 %{?_smp_mflags} strict_build_flags=1 +%endif + # Possibly usefull arguments: # --debug=findlibs @@ -98,9 +116,12 @@ install -D -m 644 scripts/packages/README-MySQL %{buildroot}%{_docdir}/galera/RE %changelog -* Wed Jun 12 2019 Michal Schorm - 25.3.26-1 +* Fri Jul 19 2019 Michal Schorm - 25.3.26-1 - Rebase to 25.3.26 +* Fri Jul 19 2019 Michal Schorm - 25.3.25-4 +- Use macro for setting up the compiler flags + * Thu Jan 31 2019 Fedora Release Engineering - 25.3.25-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild