diff --git a/mpd.spec b/mpd.spec index 3f59cee..2968917 100644 --- a/mpd.spec +++ b/mpd.spec @@ -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 \