From 52465c72d458927ea435a1383fb37beb6e7c4e80 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 23 Apr 2021 02:00:38 +0300 Subject: [PATCH 49/51] meson-winbuild: Link with -static-libgcc See osdn #42055 Signed-off-by: Marko Lindqvist --- windows/installer_cross/meson/cross-win32.tmpl | 4 ++++ windows/installer_cross/meson/cross-win64.tmpl | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/windows/installer_cross/meson/cross-win32.tmpl b/windows/installer_cross/meson/cross-win32.tmpl index e087cf5fa9..b321471966 100644 --- a/windows/installer_cross/meson/cross-win32.tmpl +++ b/windows/installer_cross/meson/cross-win32.tmpl @@ -15,3 +15,7 @@ endian = 'little' [properties] cross_inc_path = '/include' cross_lib_path = '/lib' + +[built-in options] +c_link_args = ['-static-libgcc'] +cpp_link_args = ['-static-libgcc', '-static-libstdc++'] diff --git a/windows/installer_cross/meson/cross-win64.tmpl b/windows/installer_cross/meson/cross-win64.tmpl index fb27ad164a..15767a5961 100644 --- a/windows/installer_cross/meson/cross-win64.tmpl +++ b/windows/installer_cross/meson/cross-win64.tmpl @@ -15,3 +15,7 @@ endian = 'little' [properties] cross_inc_path = '/include' cross_lib_path = '/lib' + +[built-in options] +c_link_args = ['-static-libgcc'] +cpp_link_args = ['-static-libgcc', '-static-libstdc++'] -- 2.30.2