From 588755b15a95dd39080ec95079e0a84398eb04e9 Mon Sep 17 00:00:00 2001 From: francesco-st <68635116+francesco-st@users.noreply.github.com> Date: Wed, 17 Feb 2021 18:42:38 +0100 Subject: [PATCH] Use -static-libgcc only if the compiler is gcc clang does not accept the -static-libgcc flag and apparently -static-libstdc++ is accepted but has no effect. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 70c5247f..edd6a730 100644 --- a/meson.build +++ b/meson.build @@ -28,7 +28,7 @@ foreach data_module : ['core', 'fonts', 'plugins', 'colors'] endforeach lite_link_args = [] -if get_option('buildtype') == 'release' +if cc.get_id() == 'gcc' and get_option('buildtype') == 'release' lite_link_args += ['-static-libgcc', '-static-libstdc++'] endif