From 283aa43bf906081dc510fd071dcb82611bfe5ccb Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 30 Apr 2022 02:41:23 +0200 Subject: [PATCH] Ports: Force glib to link against gcc_s during the configure stage --- Ports/glib/package.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ports/glib/package.sh b/Ports/glib/package.sh index d23819291b..da3bbc7fc5 100755 --- a/Ports/glib/package.sh +++ b/Ports/glib/package.sh @@ -8,6 +8,11 @@ files="https://gitlab.gnome.org/GNOME/glib/-/archive/${version}/glib-${version}. auth_type=sha256 configure() { + # TODO: Figure out why GCC doesn't autodetect that libgcc_s is needed. + if [ "${SERENITY_TOOLCHAIN}" = "GNU" ]; then + export LDFLAGS="-lgcc_s" + fi + run meson _build "${configopts[@]}" }