From 147f735333b3bbb88a5c8c5d832c8a18b9755952 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 27 Jun 2016 14:21:54 -0700 Subject: More build fixes. --- zerotier-one.spec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zerotier-one.spec') 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 -- cgit v1.2.3