From f8038af1232e6057986977b41969ffd8825e74cf6a464793e32271a8fb4965e0 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 31 Jan 2018 10:51:06 +0000 Subject: [PATCH] correct g++ detection OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpd?expand=0&rev=6 --- mpd.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 \