Support package build with clang

(cherry picked from commit cab1da2e525df4996fada16165d65f480bc7430b)
This commit is contained in:
wangqiang 2024-03-19 23:05:33 +08:00 committed by openeuler-sync-bot
parent 45bef837cd
commit b65a9cfad3

View File

@ -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 <wangqiang1@kylinos.cn> - 1:1.36.1-4
- Support package build with clang
* Thu Aug 31 2023 huangsong <huangsong14@huawei.com> - 1:1.36.1-3
- Type:CVE
- Id:NA