From 775820dff8174e7737ab9c42627183d436523935 Mon Sep 17 00:00:00 2001 From: SaltyFruit Date: Tue, 11 Apr 2023 15:00:30 +0800 Subject: [PATCH 1/2] Add support for specifying cc --- zip.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zip.spec b/zip.spec index 63ecc9d..82e6260 100644 --- a/zip.spec +++ b/zip.spec @@ -17,6 +17,7 @@ Patch6: zipnote.patch Patch6000: CVE-2018-13410.patch Patch9000: openEuler-Cleanup-residual-temporary-file.patch +Patch9001: support-specify-cc.patch BuildRequires: bzip2-devel gcc @@ -37,7 +38,7 @@ This package contains the documents and manuals related to zip. %autosetup -n zip30 -p1 %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" %install mkdir -p %{buildroot}%{_bindir} -- Gitee From 4c11788089834b6876924a9393546dad22366317 Mon Sep 17 00:00:00 2001 From: SaltyFruit Date: Sun, 16 Apr 2023 08:57:46 +0000 Subject: [PATCH 2/2] add support-specify-cc.patch. Signed-off-by: SaltyFruit --- support-specify-cc.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 support-specify-cc.patch diff --git a/support-specify-cc.patch b/support-specify-cc.patch new file mode 100644 index 0000000..af7c15a --- /dev/null +++ b/support-specify-cc.patch @@ -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 -- Gitee