Set CFLAGS_OPT_WERROR only on post-5 CentOS and RHEL systems.

OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=160
This commit is contained in:
Lars Müller 2015-01-24 23:07:35 +00:00 committed by Git OBS Bridge
parent e5a0307296
commit ca1e0198e0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jan 24 23:04:19 UTC 2015 - lmuelle@suse.com
- Set CFLAGS_OPT_WERROR only on post-5 CentOS and RHEL systems.
-------------------------------------------------------------------
Sat Jan 24 22:33:59 UTC 2015 - lmuelle@suse.com

View File

@ -128,7 +128,7 @@ once, if at all. The rest is done by logrotate / cron.)
fPIE="-fPIE"
pie="-pie"
%endif
%if %{?suse_version:%suse_version}%{?!suse_version:99999} > 1100
%if 0%{?suse_version} > 1100 || 0%{?centos_version} > 599 || 0%{?rhel_version} > 599
CFLAGS_OPT_WERROR="-Werror=format-security -Werror=missing-format-attribute"
%endif
cat <<-EOF > Local/Makefile