fix the issue of compilation failure when the openEuler macro is not defined

This commit is contained in:
wangyuhang 2024-02-28 10:24:59 +08:00
parent b04a1a730a
commit f864a221d1

View File

@ -2,13 +2,13 @@
%global ENABLE_RELOC 0
%endif
%if %{ENABLE_RELOC}
%if %{?ENABLE_RELOC}
%global ldflags_options -Wl,--emit-relocs
%endif
Name: bash
Version: 5.1.8
Release: 12
Release: 13
Summary: It is the Bourne Again Shell
License: GPLv3
URL: https://www.gnu.org/software/bash
@ -148,7 +148,7 @@ make check
%{_bindir}/{hash,getopts,jobs,read,type,ulimit,umask,unalias}
%config(noreplace) %{_sysconfdir}/profile.d/alias.sh
%if %{ENABLE_RELOC}
%if %{?ENABLE_RELOC}
%files relocation
%defattr(-,root,root)
/usr/lib/relocation/%{_bindir}/bash.relocation
@ -171,6 +171,12 @@ make check
%exclude %{_infodir}/dir
%changelog
* Wed Feb 28 2024 wangyuhang <wangyuhang27@huawei.com> -5.1.8-13
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix the issue of compilation failure when the openEuler macro is not defined
* Fri Dec 15 2023 wangyuhang <wangyuhang27@huawei.com> -5.1.8-12
- Type:bugfix
- ID:NA