diff --git a/0001-support-clang-build.patch b/0001-support-clang-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..b0efea156efc0a18029f82c2d468bcc8bb95835c --- /dev/null +++ b/0001-support-clang-build.patch @@ -0,0 +1,29 @@ +From 92a59ec22b6b4c097c6aee6898071d66b8ce381c Mon Sep 17 00:00:00 2001 +From: luofeng +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 + diff --git a/traceroute.spec b/traceroute.spec index ea149010f0591d46fb0e2651dbf2e3f2fd5fe78b..a27b426128f9522d3acc2504aae811f030e7d8f3 100644 --- a/traceroute.spec +++ b/traceroute.spec @@ -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 - 3:2.1.5-2 +- support clang build + * Fri Dec 29 2023 Xingwei - 3:2.1.5-1 - Type:requirement - Id:NA