Use __cc macro instead of hard-coding gcc

This commit is contained in:
Tom Stellard 2020-01-14 23:08:01 +00:00
parent 796f77ad78
commit 11b7fa4b8a

View File

@ -1,6 +1,6 @@
Name: fxload
Version: 2008_10_13
Release: 14%{?dist}
Release: 15%{?dist}
Summary: A helper program to download firmware into FX and FX2 EZ-USB devices
License: GPLv2+
@ -33,7 +33,7 @@ appears on the bus.
%patch1 -p1 -b .cflags
%build
make CC=gcc CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
make CC=%{__cc} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
%install
mkdir -p -m 755 %{buildroot}/sbin
@ -48,6 +48,9 @@ install -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/
%{_mandir}/*/*
%changelog
* Mon Feb 03 2020 Tom Stellard <tstellar@redhat.com> - 2008_10_13-15
- Use __cc macro instead of hard-coding gcc
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2008_10_13-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild