!22 [sync] PR-21: 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-27 01:59:42 +00:00 committed by Gitee
commit f7f5f321ca
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From 92a59ec22b6b4c097c6aee6898071d66b8ce381c Mon Sep 17 00:00:00 2001
From: luofeng <luofeng13@huawei.com>
Date: Mon, 11 Mar 2024 12:15:11 +0800
Subject: [PATCH] support clang build
---
Make.rules | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Make.rules b/Make.rules
index f1ddc25..fa7c662 100644
--- a/Make.rules
+++ b/Make.rules
@@ -36,10 +36,10 @@ endif
$(call set, CROSS, )
-$(call set, CC, $$(CROSS)gcc)
+$(call set, CC, $$(CROSS)$(CC))
$(call set, AS, $$(CROSS)as)
$(call set, LD, $$(CROSS)ld)
-$(call set, DEPEND, $$(CROSS)gcc -MM -MG)
+$(call set, DEPEND, $$(CROSS)$(CC) -MM -MG)
$(call set, AR, $$(CROSS)ar)
$(call set, RANLIB, $$(CROSS)ranlib)
$(call set, INSTALL, cp)
--
2.19.1

View File

@ -1,7 +1,7 @@
Name: traceroute Name: traceroute
Epoch: 3 Epoch: 3
Version: 2.1.5 Version: 2.1.5
Release: 1 Release: 2
Summary: A new modern implementation of traceroute(8) utility for Linux systems Summary: A new modern implementation of traceroute(8) utility for Linux systems
License: GPL-2.0-or-later License: GPL-2.0-or-later
URL: http://traceroute.sourceforge.net/ URL: http://traceroute.sourceforge.net/
@ -12,6 +12,8 @@ Obsoletes: tcptraceroute < 1.5-1
BuildRequires: gcc BuildRequires: gcc
Patch0001: 0001-support-clang-build.patch
%description %description
Traceroute tracks the route packets taken from an IP network on their way Traceroute tracks the route packets taken from an IP network on their way
to a given host. It utilizes the IP protocol's time to live (TTL) field to a given host. It utilizes the IP protocol's time to live (TTL) field
@ -45,6 +47,9 @@ ln -s traceroute.8 $RPM_BUILD_ROOT%{_mandir}/man8/tcptraceroute.8
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Fri Mar 1 2024 luofeng <luofeng13@huawei.com> - 3:2.1.5-2
- support clang build
* Fri Dec 29 2023 Xingwei <xingwei14@h-partners.com> - 3:2.1.5-1 * Fri Dec 29 2023 Xingwei <xingwei14@h-partners.com> - 3:2.1.5-1
- Type:requirement - Type:requirement
- Id:NA - Id:NA