Use Make macros

This commit is contained in:
Michal Schorm 2020-08-18 23:48:05 +00:00 committed by mschorm
parent 25cbe42e22
commit af2b994ff3

View File

@ -45,11 +45,11 @@ EOF
%configure --with-unixodbc --disable-dependency-tracking
# GCC 10 defaults to -fno-common
# https://gcc.gnu.org/gcc-10/changes.html (see C section)
make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon"
%make_build CFLAGS="%{optflags} -fcommon"
%install
make DESTDIR=$RPM_BUILD_ROOT install
%make_install
%global testsuitedir %{_libdir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT/%{testsuitedir}