support clang build

Signed-off-by: luofeng14 <luofeng13@huawei.com>
(cherry picked from commit f2213b660ec16746910d6e6ff9e813398b19b073)
This commit is contained in:
luofeng14 2024-03-11 03:31:28 +00:00 committed by openeuler-sync-bot
parent 5a465b9605
commit 8c5931cdf6
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,23 @@
From 82e326f7edba4ea35bf4d5488664947e36de5de7 Mon Sep 17 00:00:00 2001
From: luofeng <luofeng13@huawei.com>
Date: Mon, 11 Mar 2024 11:12:24 +0800
Subject: [PATCH] support clang build
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 0f7411c..3f736e2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
# Makefile for systems with GNU tools
-CC = gcc
+CC ?= gcc
INSTALL = install
IFLAGS = -idirafter dummyinc
#CFLAGS = -g
--
2.19.1

View File

@ -2,7 +2,7 @@
Name: vsftpd Name: vsftpd
Version: 3.0.5 Version: 3.0.5
Release: 1 Release: 2
Summary: It is a secure FTP server for Unix-like systems Summary: It is a secure FTP server for Unix-like systems
# OpenSSL link exception # OpenSSL link exception
License: GPLv2 with exceptions License: GPLv2 with exceptions
@ -87,6 +87,7 @@ Patch68: 0002-Drop-an-unused-global-variable.patch
Patch69: 0001-Remove-a-hint-about-the-ftp_home_dir-SELinux-boolean.patch Patch69: 0001-Remove-a-hint-about-the-ftp_home_dir-SELinux-boolean.patch
Patch70: fix-str_open.patch Patch70: fix-str_open.patch
Patch71: vsftpd-3.0.5-enable_wc_logs-replace_unprintable_with_hex.patch Patch71: vsftpd-3.0.5-enable_wc_logs-replace_unprintable_with_hex.patch
Patch72: 0072-support-clang-build.patch
Patch9000: bugfix-change-the-default-value-of-tunable_reverse_lookup_e.patch Patch9000: bugfix-change-the-default-value-of-tunable_reverse_lookup_e.patch
@ -153,6 +154,9 @@ cp -f %{SOURCE1} ./
%{_mandir}/man8/vsftpd.* %{_mandir}/man8/vsftpd.*
%changelog %changelog
* Fri Mar 1 2024 luofeng <luofeng13@huawei.com> - 3.0.5-2
- support clang build
* Thu Nov 17 2022 zhouyihang <zhouyihang3@h-partners.com> - 3.0.5-1 * Thu Nov 17 2022 zhouyihang <zhouyihang3@h-partners.com> - 3.0.5-1
- Type:requirement - Type:requirement
- ID:NA - ID:NA