summaryrefslogtreecommitdiff
path: root/zerotier-one.spec
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-27 14:21:54 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-27 14:21:54 -0700
commit147f735333b3bbb88a5c8c5d832c8a18b9755952 (patch)
tree177e489e7d8a8268cd0a3d514535ff67da981d03 /zerotier-one.spec
parent8de5b2beda6d2e9102d3e77e179c0dc785b8e024 (diff)
downloadinfinitytier-147f735333b3bbb88a5c8c5d832c8a18b9755952.tar.gz
infinitytier-147f735333b3bbb88a5c8c5d832c8a18b9755952.zip
More build fixes.
Diffstat (limited to 'zerotier-one.spec')
-rw-r--r--zerotier-one.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/zerotier-one.spec b/zerotier-one.spec
index d35298b4..d4405aab 100644
--- a/zerotier-one.spec
+++ b/zerotier-one.spec
@@ -64,7 +64,11 @@ rm -f %{name}-%{version}
cp -a %{getenv:PWD}/* .
%build
+%if 0%{?rhel} <= 7
make CFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" CXXFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one manpages selftest
+%else
+make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one manpages selftest
+%endif
%install
rm -rf $RPM_BUILD_ROOT