From 57fb0be0c1b6e7e77df57499effc22784edeb898 Mon Sep 17 00:00:00 2001 From: Laurent Jean-Rigaud Date: Fri, 23 Feb 2024 16:50:21 +0100 Subject: [PATCH] fix C11 error on EL7 --- elog.spec.template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/elog.spec.template b/elog.spec.template index 0e7f8abf..a30dd67a 100644 --- a/elog.spec.template +++ b/elog.spec.template @@ -110,7 +110,11 @@ each weblog can be totally different from the rest. -g elog -M -r elog 2>/dev/null || : %build -make %{?_with_ssl} %{?_with_pam} %{?_with_ldap} %{?_with_krb5} CFLAGS="$RPM_OPT_FLAGS -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml" +%if 0%{?rhel} == 7 + make %{?_with_ssl} %{?_with_pam} %{?_with_ldap} %{?_with_krb5} CFLAGS="$RPM_OPT_FLAGS -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml -std=c++11" +%else + make %{?_with_ssl} %{?_with_pam} %{?_with_ldap} %{?_with_krb5} CFLAGS="$RPM_OPT_FLAGS -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml" +%endif sed "s#\@PREFIX\@#%{prefix}#g" elogd.init_template > elogd.init %install -- 2.41.0