Accepting request 616051 from home:plater
Fix gcc8 build failure with -Wno-error=restrict. OBS-URL: https://build.opensuse.org/request/show/616051 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/buzztrax?expand=0&rev=38
This commit is contained in:
parent
629fc546b3
commit
6cafa4cf9d
@ -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
|
Sat Mar 24 06:22:13 UTC 2018 - davejplater@gmail.com
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ Name: buzztrax
|
|||||||
Version: 0.10.2
|
Version: 0.10.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A music studio inspired by Buzz
|
Summary: A music studio inspired by Buzz
|
||||||
License: GPL-2.0+
|
License: GPL-2.0-or-later
|
||||||
Group: Productivity/Multimedia/Sound/Utilities
|
Group: Productivity/Multimedia/Sound/Utilities
|
||||||
Url: http://buzztrax.org
|
Url: http://buzztrax.org
|
||||||
Source0: http://files.buzztrax.org/releases/%{name}-%{version}.tar.gz
|
Source0: http://files.buzztrax.org/releases/%{name}-%{version}.tar.gz
|
||||||
@ -212,15 +212,14 @@ cp -v %{SOURCE1} .
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%if 1 == 0
|
%if 1 == 0
|
||||||
%define gcc_version 7
|
%define gcc_version 8
|
||||||
export CC=gcc-7
|
export CC=gcc-8
|
||||||
export CPP=cpp-7
|
export CPP=cpp-8
|
||||||
export CXX=g++-7
|
export CXX=g++-8
|
||||||
%endif
|
%endif
|
||||||
export CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
|
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 -Wno-error=restrict"
|
||||||
export CFLAGS="$CFLAGS -Wno-error=format-truncation= -Wno-error=format-overflow= -Wno-error=incompatible-pointer-types"
|
export CXXFLAGS="$CFLAGS"
|
||||||
%endif
|
|
||||||
|
|
||||||
/bin/sh ./autogen.sh --noconfigure
|
/bin/sh ./autogen.sh --noconfigure
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user