diff --git a/qpid-proton.spec b/qpid-proton.spec index 84495c0..883f597 100644 --- a/qpid-proton.spec +++ b/qpid-proton.spec @@ -268,13 +268,14 @@ Requires: qpid-proton-c = %{version}-%{release} %build %if 0%{?fedora} -export ADDCXXFLAGS=" -Wno-error=format-security -Wno-error=catch-value=" +export ADDCXXFLAGS=" -Wno-error=return-type" %cmake \ -DSYSINSTALL_PYTHON=1 \ -DSYSINSTALL_PERL=1 \ -DSYSINSTALL_BINDINGS=ON \ -DCMAKE_SKIP_RPATH:BOOL=OFF \ -DENABLE_FUZZ_TESTING=NO \ + "-DCMAKE_CXX_FLAGS=$CXXFLAGS $ADDCXXFLAGS" \ . %endif %if 0%{?rhel} && 0%{?rhel} <= 7