diff --git a/0001-pigz-fix-cc.patch b/0001-pigz-fix-cc.patch new file mode 100644 index 0000000000000000000000000000000000000000..505bd7c20596bd99119cd81af5af6b1e18a20305 --- /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 0a2a0cf669f8bafbc0f382752d0c020e9b406f5f..a3676798954c5e950ffdcf10c5bf854d8e17da34 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