From 9a8a914fd9201f82847061ebfaee0d24c5edc4e8 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Sun, 30 Jan 2022 19:06:52 +0100 Subject: [PATCH] Fix build --- mingw-glib2.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mingw-glib2.spec b/mingw-glib2.spec index 04dfa18..5e01f18 100644 --- a/mingw-glib2.spec +++ b/mingw-glib2.spec @@ -96,10 +96,17 @@ Static version of the MinGW Windows GLib2 library. %autosetup -p1 -n glib-%{version} %build -%mingw_meson --default-library=both +export MINGW_BUILDDIR_SUFFIX=static +%mingw_meson --default-library=static +%mingw_ninja +export MINGW_BUILDDIR_SUFFIX=shared +%mingw_meson --default-library=shared %mingw_ninja %install +export MINGW_BUILDDIR_SUFFIX=static +%mingw_ninja_install +export MINGW_BUILDDIR_SUFFIX=shared %mingw_ninja_install # There's a small difference in the file glibconfig.h between the