!14 Add "%{optflags}" for %build

From: @zou_lin77
Reviewed-by: @huangduirong,@overweight
Signed-off-by: @huangduirong,@overweight
This commit is contained in:
openeuler-ci-bot 2021-09-07 01:13:36 +00:00 committed by Gitee
commit 68adf65d92

View File

@ -1,6 +1,6 @@
Name: os-prober
Version: 1.77
Release: 2
Release: 3
Summary: Probe disks on the system for other operating systems
License: GPLv2+ and GPL+
URL: http://kitenet.net/~joey/code/os-prober/
@ -31,7 +31,7 @@ sed -i -e 's|grub-mount|grub2-mount|g' os-probes/common/50mounted-tests \
linux-boot-probes/common/50mounted-tests common.sh
%build
%make_build
%make_build CFLAGS="%{optflags}"
%install
install -m 0755 -d $RPM_BUILD_ROOT%{_bindir}
@ -84,6 +84,9 @@ fi
%{_libexecdir}/*
%changelog
* Sat Sep 4 2021 zoulin<zoulin13@huawei.com> - 1.77-3
- Add "%%{optflags}" for %build
* Wed May 26 2021 yangzhuangzhuang<yangzhuangzhuang1@huawei.com> - 1.77-2
- Remove code using device mapper