summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/unit.module.spec.in
diff options
context:
space:
mode:
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 8b8a3433..d06db231 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%%")