diff options
author | Andrei Belov <defan@nginx.com> | 2019-02-14 17:21:37 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2019-02-14 17:21:37 +0300 |
commit | 55817811168e90c4506050bb4996dc4d59060958 (patch) | |
tree | 86b65f579dcf55cc0ca3f0a01dba0e76e1494da3 /pkg/rpm/unit.spec.in | |
parent | 01210fe5748abbf7494d72ddff12942f09461ddf (diff) | |
download | unit-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 '')
-rw-r--r-- | pkg/rpm/unit.spec.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/rpm/unit.spec.in b/pkg/rpm/unit.spec.in index 1ef02881..31833f6b 100644 --- a/pkg/rpm/unit.spec.in +++ b/pkg/rpm/unit.spec.in @@ -23,7 +23,12 @@ Requires: systemd 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%%") |