correct g++ detection
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpd?expand=0&rev=6
This commit is contained in:
parent
d03c1a3f54
commit
f8038af123
12
mpd.spec
12
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user