support clang build

Signed-off-by: luofeng14 <luofeng13@huawei.com>
(cherry picked from commit 83bb0dad4c450bacf519477fb501f00ea7bc843a)
This commit is contained in:
luofeng14 2024-03-11 04:29:42 +00:00 committed by openeuler-sync-bot
parent 007b6641d4
commit e013657649
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
Epoch: 3
Version: 2.1.5
Release: 1
Release: 2
Summary: A new modern implementation of traceroute(8) utility for Linux systems
License: GPL-2.0-or-later
URL: http://traceroute.sourceforge.net/
@ -12,6 +12,8 @@ Obsoletes: tcptraceroute < 1.5-1
BuildRequires: gcc
Patch0001: 0001-support-clang-build.patch
%description
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
@ -45,6 +47,9 @@ ln -s traceroute.8 $RPM_BUILD_ROOT%{_mandir}/man8/tcptraceroute.8
%{_mandir}/*/*
%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
- Type:requirement
- Id:NA