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
%build
%if 0%{?suse_version} > 1320
export CC=gcc
export CXX=g++
%else
# Leap 42.2+ / SLE12SP2Backports
export CC=gcc-6
export CXX=g++-6
%endif
test -x "$(type -p gcc-5)" && export CC=gcc-5
test -x "$(type -p g++-5)" && export CC=g++-5
test -x "$(type -p gcc-6)" && export CC=gcc-6
test -x "$(type -p g++-6)" && export CC=g++-6
test -x "$(type -p gcc-7)" && export CC=gcc-7
test -x "$(type -p g++-7)" && export CC=g++-7
NOCONFIGURE=1 ./autogen.sh
%configure \
--disable-sidplay \