!11 [sync] PR-10: Support build with clang

From: @openeuler-sync-bot 
Reviewed-by: @sunsuwan 
Signed-off-by: @sunsuwan
This commit is contained in:
openeuler-ci-bot 2024-03-28 13:34:44 +00:00 committed by Gitee
commit 1834450280
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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
Version: 3.0.5
Release: 1
Release: 2
Summary: It is a secure FTP server for Unix-like systems
# OpenSSL link exception
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
Patch70: fix-str_open.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
@ -153,6 +154,9 @@ cp -f %{SOURCE1} ./
%{_mandir}/man8/vsftpd.*
%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
- Type:requirement
- ID:NA