From fbbfe2b5509662f1eaeabeebe4b1813a49439076 Mon Sep 17 00:00:00 2001 From: wangqiang Date: Tue, 19 Mar 2024 23:05:33 +0800 Subject: [PATCH] Support package build with clang (cherry picked from commit cab1da2e525df4996fada16165d65f480bc7430b) --- busybox.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/busybox.spec b/busybox.spec index 5afd82b..401abf0 100644 --- a/busybox.spec +++ b/busybox.spec @@ -4,7 +4,7 @@ %endif %if "%{!?RELEASE:1}" -%define RELEASE 3 +%define RELEASE 4 %endif Epoch: 1 @@ -62,7 +62,7 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="-Wl,-z,now" cp %{SOURCE3} .config yes "" | make oldconfig && \ cat .config && \ -make V=1 %{?_smp_mflags} CC="gcc $RPM_OPT_FLAGS" +make V=1 %{?_smp_mflags} CC="%{__cc} $RPM_OPT_FLAGS" cp busybox_unstripped busybox.dynamic cp docs/busybox.1 docs/busybox.dynamic.1 @@ -97,6 +97,9 @@ install -m 644 docs/busybox.dynamic.1 $RPM_BUILD_ROOT/%{_mandir}/man1/busybox.1 %{_mandir}/man1/busybox.petitboot.1.gz %changelog +* Wed Mar 20 2024 wangqiang - 1:1.36.1-4 +- Support package build with clang + * Thu Aug 31 2023 huangsong - 1:1.36.1-3 - Type:CVE - Id:NA -- Gitee