Use __cc macro instead of hard-coding gcc

This commit is contained in:
Tom Stellard 2020-01-14 04:21:53 +00:00
parent 709e9ae20e
commit d59639f608

View File

@ -1,6 +1,6 @@
Name: dtc Name: dtc
Version: 1.5.1 Version: 1.5.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Device Tree Compiler Summary: Device Tree Compiler
License: GPLv2+ License: GPLv2+
URL: https://devicetree.org/ URL: https://devicetree.org/
@ -53,7 +53,7 @@ This package provides python2 bindings for libfdt
sed -i 's/python2/python3/' pylibfdt/setup.py sed -i 's/python2/python3/' pylibfdt/setup.py
%build %build
make %{?_smp_mflags} V=1 CC="gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS" make %{?_smp_mflags} V=1 CC="%{__cc} $RPM_OPT_FLAGS $RPM_LD_FLAGS"
%install %install
#make install DESTDIR=$RPM_BUILD_ROOT SETUP_PREFIX=$RPM_BUILD_ROOT/usr PREFIX=/usr LIBDIR=%{_libdir} #make install DESTDIR=$RPM_BUILD_ROOT SETUP_PREFIX=$RPM_BUILD_ROOT/usr PREFIX=/usr LIBDIR=%{_libdir}
@ -87,6 +87,9 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/ftdump
%{python3_sitearch}/* %{python3_sitearch}/*
%changelog %changelog
* Tue Jan 14 2020 Tom Stellard <tstellar@redhat.com> - 1.5.1-2
- Use __cc macro instead of hard-coding gcc
* Wed Sep 11 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.5.1-1 * Wed Sep 11 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.5.1-1
- New dtc 1.5.1 release - New dtc 1.5.1 release