!32 Support build with clang
From: @luofeng14 Reviewed-by: @dillon_chen Signed-off-by: @dillon_chen
This commit is contained in:
commit
f44b9ae1f2
11
zip-fix-cc.patch
Normal file
11
zip-fix-cc.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/unix/Makefile 2008-05-07 14:33:56.000000000 +0800
|
||||||
|
+++ b/unix/Makefile 2023-04-16 16:14:10.611625606 +0800
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
LN = ln -s
|
||||||
|
|
||||||
|
# (to use the GNU compiler, change cc to gcc in CC)
|
||||||
|
-CC = cc
|
||||||
|
+CC ?= cc
|
||||||
|
BIND = $(CC)
|
||||||
|
AS = $(CC) -c
|
||||||
|
CPP = /lib/cpp
|
||||||
8
zip.spec
8
zip.spec
@ -1,6 +1,6 @@
|
|||||||
Name: zip
|
Name: zip
|
||||||
Version: 3.0
|
Version: 3.0
|
||||||
Release: 30
|
Release: 31
|
||||||
Summary: A compression and file packaging/archive utility
|
Summary: A compression and file packaging/archive utility
|
||||||
License: Info-ZIP
|
License: Info-ZIP
|
||||||
URL: http://www.info-zip.org/Zip.html
|
URL: http://www.info-zip.org/Zip.html
|
||||||
@ -13,6 +13,7 @@ Patch3: zip-3.0-time.patch
|
|||||||
Patch4: man.patch
|
Patch4: man.patch
|
||||||
Patch5: zip-3.0-format-security.patch
|
Patch5: zip-3.0-format-security.patch
|
||||||
Patch6: zipnote.patch
|
Patch6: zipnote.patch
|
||||||
|
Patch7: zip-fix-cc.patch
|
||||||
|
|
||||||
Patch6000: CVE-2018-13410.patch
|
Patch6000: CVE-2018-13410.patch
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ This package contains the documents and manuals related to zip.
|
|||||||
%autosetup -n zip30 -p1
|
%autosetup -n zip30 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build -f unix/Makefile prefix=%{_prefix} "CFLAGS_NOOPT=-I. -DUNIX $RPM_OPT_FLAGS" generic_gcc
|
%make_build -f unix/Makefile prefix=%{_prefix} "CFLAGS_NOOPT=-I. -DUNIX $RPM_OPT_FLAGS" generic
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
@ -55,6 +56,9 @@ mkdir -p %{buildroot}%{_mandir}/man1
|
|||||||
%{_mandir}/man1/zip*
|
%{_mandir}/man1/zip*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 10 2023 luofeng <luofeng13@huawei.com> - 3.0-31
|
||||||
|
- support clang build
|
||||||
|
|
||||||
* Fri May 27 2022 konglidong <konglidong@uniontech.com> - 3.0-30
|
* Fri May 27 2022 konglidong <konglidong@uniontech.com> - 3.0-30
|
||||||
- modify bad date in %changelog
|
- modify bad date in %changelog
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user