summaryrefslogtreecommitdiff
path: root/scripts/rpmbuild
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-04 09:58:42 +0800
committerruki <[email protected]>2020-10-04 09:58:42 +0800
commit86717a54f05f539460be3ad3d4d49fb121758e84 (patch)
tree6d10a38ca57b12aed2d6c54cea4e9243e674de6b /scripts/rpmbuild
parent016bff1f997ce0aa15c15cf5db0591a89abd986c (diff)
improve xmake.spec for opensuse
Diffstat (limited to 'scripts/rpmbuild')
-rw-r--r--scripts/rpmbuild/SPECS/xmake.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/rpmbuild/SPECS/xmake.spec b/scripts/rpmbuild/SPECS/xmake.spec
index 18e6fa795..249e74e87 100644
--- a/scripts/rpmbuild/SPECS/xmake.spec
+++ b/scripts/rpmbuild/SPECS/xmake.spec
@@ -55,7 +55,12 @@ ln -s `pwd`/../xmake-core-luajit-%{luajit_revision} core/src/luajit/luajit
ln -s `pwd`/../xmake-core-lua-cjson-%{lua_cjson_revision} core/src/lua-cjson/lua-cjson
%build
-%?set_build_flags
+%if 0%{?suse_version} && 0%{?suse_version} < 1550
+export CFLAGS="%{optflags}"
+export CXXFLAGS="%{optflags}"
+%else
+%set_build_flags
+%endif
%make_build
%install