summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/unit.module.spec.in
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-02-14 17:21:37 +0300
committerAndrei Belov <defan@nginx.com>2019-02-14 17:21:37 +0300
commit55817811168e90c4506050bb4996dc4d59060958 (patch)
tree86b65f579dcf55cc0ca3f0a01dba0e76e1494da3 /pkg/rpm/unit.module.spec.in
parent01210fe5748abbf7494d72ddff12942f09461ddf (diff)
downloadunit-55817811168e90c4506050bb4996dc4d59060958.tar.gz
unit-55817811168e90c4506050bb4996dc4d59060958.tar.bz2
Packages: added "-fno-strict-aliasing" flag on CentOS 6 x86_64.1.7.1-1
Closes #221 on GitHub.
Diffstat (limited to 'pkg/rpm/unit.module.spec.in')
-rw-r--r--pkg/rpm/unit.module.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/rpm/unit.module.spec.in b/pkg/rpm/unit.module.spec.in
index 03d4addb..d86469f4 100644
--- a/pkg/rpm/unit.module.spec.in
+++ b/pkg/rpm/unit.module.spec.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%%")