Packages: added "-fno-strict-aliasing" flag on CentOS 6 x86_64.
Closes #221 on GitHub.
This commit is contained in:
@@ -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%%")
|
||||
|
||||
|
||||
@@ -29,7 +29,12 @@ BuildRequires: openssl-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
%endif
|
||||
|
||||
%if (0%{?rhel} == 6) && (%{_arch} == x86_64)
|
||||
%define CC_OPT %{optflags} -fno-strict-aliasing -fPIC
|
||||
%else
|
||||
%define CC_OPT %{optflags} -fPIC
|
||||
%endif
|
||||
|
||||
%define LD_OPT -Wl,-z,relro -Wl,-z,now -pie
|
||||
|
||||
%define CONFIGURE_ARGS $(echo "%%CONFIGURE_ARGS%%")
|
||||
|
||||
Reference in New Issue
Block a user