Use static libgcc and libstdc++ when doing release build

This commit is contained in:
Francesco Abbate
2020-06-02 23:20:22 +02:00
parent e01ba599ba
commit 01a4981210
3 changed files with 10 additions and 3 deletions
+6
View File
@@ -13,5 +13,11 @@ stb_truetype_dep = dependency('stb_truetype')
lite_include = include_directories('src')
install_subdir('data', install_dir : 'bin')
lite_cdefs = []
lite_link_args = []
if get_option('buildtype') == 'release'
lite_link_args += ['-static-libgcc', '-static-libstdc++']
endif
subdir('src')
subdir('tests')