SHA256
1
0
forked from pool/audacity

Accepting request 569830 from multimedia:apps

Build with gcc7 for Leap:42.3 and -fstack-clash-protection

OBS-URL: https://build.opensuse.org/request/show/569830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/audacity?expand=0&rev=78
This commit is contained in:
Dominique Leuenberger 2018-01-26 12:40:40 +00:00 committed by Git OBS Bridge
commit 7ae07c4029
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 26 09:23:34 UTC 2018 - davejplater@gmail.com
- Build with gcc7 for Leap:42.3 and -fstack-clash-protection
-------------------------------------------------------------------
Mon Jan 15 19:06:10 UTC 2018 - jengelh@inai.de

View File

@ -46,11 +46,11 @@ BuildRequires: automake
BuildRequires: cmake
BuildRequires: desktop-file-utils
#Audacity only builds with gcc >= 4.9
# WARNING: Anything built against wxWidgets with gcc >= 5 needs widgets built with relax-abi.diff
# WARNING: Anything built against wxWidgets with gcc >= 5 needs widgets built with relax-abi.diff and gcc >= 5
%if 0%{?suse_version} < 1330
BuildRequires: cpp5
BuildRequires: gcc5
BuildRequires: gcc5-c++
BuildRequires: cpp7
BuildRequires: gcc7
BuildRequires: gcc7-c++
%else
BuildRequires: gcc-c++
%endif
@ -118,8 +118,10 @@ rm -rf lib-src/lame
%build
# WARNING: Do not alter, only for Leap.
test -x "$(type -p gcc-5)" && export CC=gcc-5
test -x "$(type -p g++-5)" && export CXX=g++-5
test -x "$(type -p %{_bindir}/gcc-7)" && export CC="%{_bindir}/gcc-7"
test -x "$(type -p %{_bindir}/g++-7)" && export CXX="%{_bindir}/g++-7"
test -x "$(type -p %{_bindir}/cpp-7)" && export CPP="%{_bindir}/cpp-7"
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS -std=gnu++11"
aclocal -I m4