only apply move elision to recent GCC versions

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/rttr?expand=0&rev=10
This commit is contained in:
Daniel Weatherill 2019-06-04 03:09:49 +00:00 committed by Git OBS Bridge
parent 3f983d348c
commit d13617ed8c

View File

@ -58,7 +58,12 @@ library itself, which is written in C++.
%patch3 -p1
%patch4 -p1
%patch5 -p1
#only apply move elision to gcc versions that support it
%if 0%{?suse_version} < 1500
%else
%patch6 -p1
%endif
%build
find . -type f -exec chmod a-x "{}" +