diff options
| author | ruki <[email protected]> | 2020-10-04 09:58:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-04 09:58:42 +0800 |
| commit | 86717a54f05f539460be3ad3d4d49fb121758e84 (patch) | |
| tree | 6d10a38ca57b12aed2d6c54cea4e9243e674de6b /scripts/rpmbuild | |
| parent | 016bff1f997ce0aa15c15cf5db0591a89abd986c (diff) | |
improve xmake.spec for opensuse
Diffstat (limited to 'scripts/rpmbuild')
| -rw-r--r-- | scripts/rpmbuild/SPECS/xmake.spec | 7 |
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 |
