diff --git a/buzztrax.changes b/buzztrax.changes index cf4cd69..65f09a6 100644 --- a/buzztrax.changes +++ b/buzztrax.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 11 11:38:06 UTC 2018 - davejplater@gmail.com + +- Fix gcc8 build failure with -Wno-error=restrict. + ------------------------------------------------------------------- Sat Mar 24 06:22:13 UTC 2018 - davejplater@gmail.com diff --git a/buzztrax.spec b/buzztrax.spec index 1f2280c..61ce834 100644 --- a/buzztrax.spec +++ b/buzztrax.spec @@ -31,7 +31,7 @@ Name: buzztrax Version: 0.10.2 Release: 0 Summary: A music studio inspired by Buzz -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Multimedia/Sound/Utilities Url: http://buzztrax.org Source0: http://files.buzztrax.org/releases/%{name}-%{version}.tar.gz @@ -212,15 +212,14 @@ cp -v %{SOURCE1} . %build %if 1 == 0 -%define gcc_version 7 -export CC=gcc-7 -export CPP=cpp-7 -export CXX=g++-7 +%define gcc_version 8 +export CC=gcc-8 +export CPP=cpp-8 +export CXX=g++-8 %endif export CFLAGS="%{optflags} -Wno-error=deprecated-declarations" -%if 0%{?gcc_version} >= 7 -export CFLAGS="$CFLAGS -Wno-error=format-truncation= -Wno-error=format-overflow= -Wno-error=incompatible-pointer-types" -%endif +export CFLAGS="$CFLAGS -Wno-error=format-truncation= -Wno-error=format-overflow= -Wno-error=incompatible-pointer-types -Wno-error=restrict" +export CXXFLAGS="$CFLAGS" /bin/sh ./autogen.sh --noconfigure %configure --disable-static \