From ce2e3ab52ebdc62981bb12378cce37b5733de043 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 1 Jun 2020 00:39:29 +0200 Subject: [PATCH] Statically link to libstc++ on Ubuntu 18.04 Somehwere between yabridge 1.1.4 and 1.2.0 we apparently started requiring newer libstc++ features, and I kind of forgot that libstdc++ needed is bound to the version of g++ the program was compiled with. Statically linking libstdc++ could in theory cause issues, but I think we'll be fine. --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 018359f3..509ab07c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,9 @@ jobs: mkdir -p /tmp/prefix export WINEPREFIX=/tmp/prefix - meson setup --buildtype=release --cross-file cross-wine.conf -Duse-bitbridge=true build + # Statically link to libstdc++ on Ubuntu 18.04 as we're compiling + # with a newer version of g++ than what's in the default repos + meson setup --buildtype=release --cross-file cross-wine.conf -Duse-bitbridge=true -Dcpp_link_args='-static-libstdc++' -Dbuild.cpp_link_args='-static-libstdc++' build ninja -C build - name: Create an archive for the binaries run: |