suppport clang compile

This commit is contained in:
15859157387 2023-09-27 09:22:46 +08:00
parent 9effb33e38
commit 905dda43a3

View File

@ -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 <linzhuorong@huawei.com> - 8.2210.0-3
- Type:NA
- ID:NA