correct g++ detection

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpd?expand=0&rev=6
This commit is contained in:
Olaf Hering 2018-01-31 10:51:06 +00:00 committed by Git OBS Bridge
parent d03c1a3f54
commit f8038af123

View File

@ -134,14 +134,14 @@ Please read README.mpd how to configure it.
%patch1 -p1 %patch1 -p1
%build %build
%if 0%{?suse_version} > 1320
export CC=gcc export CC=gcc
export CXX=g++ export CXX=g++
%else test -x "$(type -p gcc-5)" && export CC=gcc-5
# Leap 42.2+ / SLE12SP2Backports test -x "$(type -p g++-5)" && export CC=g++-5
export CC=gcc-6 test -x "$(type -p gcc-6)" && export CC=gcc-6
export CXX=g++-6 test -x "$(type -p g++-6)" && export CC=g++-6
%endif test -x "$(type -p gcc-7)" && export CC=gcc-7
test -x "$(type -p g++-7)" && export CC=g++-7
NOCONFIGURE=1 ./autogen.sh NOCONFIGURE=1 ./autogen.sh
%configure \ %configure \
--disable-sidplay \ --disable-sidplay \