diff --git a/0001-support-clang-build.patch b/0001-support-clang-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..9bfb0da5253d1c6c27e4d39e1613741908005293 --- /dev/null +++ b/0001-support-clang-build.patch @@ -0,0 +1,29 @@ +From a80de493808a37051bc2b4f95ae5a90b6ae277bc Mon Sep 17 00:00:00 2001 +From: luofeng +Date: Mon, 11 Mar 2024 21:35:43 +0800 +Subject: [PATCH] support clang build + +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 2b1abe5..4618dd8 100644 +--- a/Makefile ++++ b/Makefile +@@ -30,10 +30,10 @@ ALL = sgpio + all: $(ALL) + + sgpio.o: sgpio.c +- gcc $(CFLAGS) -g -Wall -c sgpio.c ++ $(CC) $(CFLAGS) -g -Wall -c sgpio.c + + sgpio: sgpio.o +- gcc $(LDFLAGS) -g sgpio.o -o sgpio ++ $(CC) $(LDFLAGS) -g sgpio.o -o sgpio + + clean: + rm -f sgpio.o sgpio +-- +2.19.1 + diff --git a/sgpio.spec b/sgpio.spec index eda23d0e65d3836df7da5c1eba442acab58ab1e3..a69061381567f7480422bdde407c7f1466310e3e 100644 --- a/sgpio.spec +++ b/sgpio.spec @@ -1,6 +1,6 @@ Name: sgpio Version: 1.2.1 -Release: 2 +Release: 3 Summary: captive backplane LED control utility License: GPLv2+ URL: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing @@ -9,6 +9,7 @@ Source0: https://www.sourceware.org/lvm2/wiki/DMRAID_Eventing?action=AttachFile& BuildRequires: gcc, dos2unix Patch0: sgpio-makefile.patch +Patch1: 0001-support-clang-build.patch %description Serial General Purpose Input Output (SGPIO) is a communication method used @@ -48,6 +49,9 @@ dos2unix README LICENSE_GPL %{_mandir}/man*/* %changelog +* Fri Mar 1 2024 luofeng - 1.2.1-3 +- support clang build + * Fri Dec 20 2019 openEuler Buildteam - 1.2.1-2 - Modify the source0