From 905dda43a321aa3c76a6d9fdb6e61dbe1a0e07b8 Mon Sep 17 00:00:00 2001 From: 15859157387 <977713017@qq.com> Date: Wed, 27 Sep 2023 09:22:46 +0800 Subject: [PATCH] suppport clang compile --- rsyslog.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rsyslog.spec b/rsyslog.spec index 273aa0f..4ce8f66 100644 --- a/rsyslog.spec +++ b/rsyslog.spec @@ -7,7 +7,7 @@ Name: rsyslog Version: 8.2210.0 -Release: 3 +Release: 4 Summary: The rocket-fast system for log processing License: (GPLv3+ and ASL 2.0) URL: http://www.rsyslog.com/ @@ -261,7 +261,7 @@ autoreconf -vfi %ifarch sparc64 export CFLAGS="$RPM_OPT_FLAGS -fPIE -DPATH_PIDFILE=\\\"%{Pidfile}\\\"" %else -export CFLAGS="$RPM_OPT_FLAGS -fpie -DPATH_PIDFILE=\\\"%{Pidfile}\\\"" +export CFLAGS="$RPM_OPT_FLAGS -fpie -fPIC -DPATH_PIDFILE=\\\"%{Pidfile}\\\"" export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now" %endif @@ -513,6 +513,12 @@ done %{_mandir}/man1/rscryutil.1.gz %changelog +* Wed Sep 27 2023 renyi <977713017@qq.com> - 8.2210.0-4 +- Type:NA +- ID:NA +- SUG:NA +- DESC: support clang compile + * Sun Jun 25 2023 linzhuorong - 8.2210.0-3 - Type:NA - ID:NA -- Gitee