Packages: added "-fno-strict-aliasing" flag on CentOS 6 x86_64.

Closes #221 on GitHub.
This commit is contained in:
Andrei Belov
2019-02-14 17:21:37 +03:00
parent 43ad6be2f0
commit 1ba49d9250
2 changed files with 9 additions and 0 deletions

View File

@@ -10,7 +10,11 @@
%define unit_version %%UNIT_VERSION%%
%define unit_release %%UNIT_RELEASE%%%{?dist}.ngx
%if (0%{?rhel} == 6) && (%{_arch} == x86_64)
%define CC_OPT %{optflags} -fno-strict-aliasing
%else
%define CC_OPT %{optflags}
%endif
%define CONFIGURE_ARGS $(echo "%%CONFIGURE_ARGS%%")