From 115984f10ecd2f94b3366d5e2f2d98feaa8de11e Mon Sep 17 00:00:00 2001 From: 15859157387 <977713017@qq.com> Date: Tue, 7 Nov 2023 09:59:32 +0800 Subject: [PATCH] support clang compile --- 0001-pigz-fix-cc.patch | 22 ++++++++++++++++++++++ pigz.spec | 9 ++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-pigz-fix-cc.patch diff --git a/0001-pigz-fix-cc.patch b/0001-pigz-fix-cc.patch new file mode 100644 index 0000000..505bd7c --- /dev/null +++ b/0001-pigz-fix-cc.patch @@ -0,0 +1,22 @@ +From b7e3380c5abf88306ff4fcb6b09d3a287259289a Mon Sep 17 00:00:00 2001 +From: 15859157387 <977713017@qq.com> +Date: Mon, 6 Nov 2023 17:04:14 +0800 +Subject: [PATCH] support clang comile + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index b1866cf..0fc97fa 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,4 @@ +-CC=gcc ++CC?=gcc + CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual + LDFLAGS= + # CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -g -fsanitize=thread +-- +2.27.0 + diff --git a/pigz.spec b/pigz.spec index 0a2a0cf..a367679 100644 --- a/pigz.spec +++ b/pigz.spec @@ -1,10 +1,11 @@ #spec from source code(%{name}-%{version}.tar.gz) Name: pigz Version: 2.6 -Release: 2 +Release: 3 Summary: pigz is a parallel implementation of gzip which utilizes multiple cores License: zlib Source0: http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz +Patch0: 0001-pigz-fix-cc.patch URL: http://www.zlib.net/pigz BuildRequires: zlib-devel gcc @@ -40,6 +41,12 @@ make test %{_mandir}/man1/pigz.1* %changelog +* Mon Nov 6 2023 renyi<977713017@qq.com> - 2.6-3 +- Type: NA +- ID: NA +- SUG: NA +- DESC: support clang compile + * Tue Oct 25 2022 yanglongkang - 2.6-2 - Type: bugfix - ID: NA -- Gitee