From 6670eb096847e40245655019aba52adbba8b3ff9 Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Mon, 25 Mar 2024 14:24:42 +0000 Subject: [PATCH] support clang build Signed-off-by: luofeng14 --- fxload.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fxload.spec b/fxload.spec index 2af24c6..ee7b400 100644 --- a/fxload.spec +++ b/fxload.spec @@ -1,6 +1,6 @@ Name: fxload Version: 2008_10_13 -Release: 19 +Release: 20 Summary: A program which downloads firmware to USB devices License: GPLv2+ URL: http://linux-hotplug.sourceforge.net/ @@ -26,7 +26,7 @@ This contains man files for the using of fxload. %autosetup -n %{name}-%{version} -p1 %build -make CC=gcc CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" +make CC=%{__cc} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %install install -D -m 755 fxload %{buildroot}/sbin/fxload @@ -41,6 +41,9 @@ install -D -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/fxload.8 %{_mandir}/*/* %changelog +* Fri Mar 1 2024 luofeng - 2008_10_13-20 +- support clang build + * Thu May 19 2022 chengwenzhe - 2008_10_13-19 - fix spec changelog date time -- Gitee