From f864a221d1e0a02a2dca94dadf8336671ad08f58 Mon Sep 17 00:00:00 2001 From: wangyuhang Date: Wed, 28 Feb 2024 10:24:59 +0800 Subject: [PATCH] fix the issue of compilation failure when the openEuler macro is not defined --- bash.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bash.spec b/bash.spec index a1db207..1f8ba02 100644 --- a/bash.spec +++ b/bash.spec @@ -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 -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 -5.1.8-12 - Type:bugfix - ID:NA -- Gitee