From ff7b3f625de273b76f36a1e91d5823b9f5787007 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 13 Oct 2019 12:54:26 +0200 Subject: For Windows builds, remove the so-version, link libgcc statically The -static-libgcc flag has to be passed through the compiler with a "-Wc," prefix, because libtool tries to be clever about linker flags. If added directly to LDFLAGS, libtool removes it. Signed-off-by: David Oberhollenzer --- lib/util/Makemodule.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/util') diff --git a/lib/util/Makemodule.am b/lib/util/Makemodule.am index d6005fa..ffd594d 100644 --- a/lib/util/Makemodule.am +++ b/lib/util/Makemodule.am @@ -6,7 +6,8 @@ libutil_la_CPPFLAGS = $(AM_CPPFLAGS) libutil_la_LDFLAGS = $(AM_LDFLAGS) if WINDOWS -libutil_la_LDFLAGS += -no-undefined +libutil_la_CFLAGS += -Wc,-static-libgcc +libutil_la_LDFLAGS += -no-undefined -avoid-version endif noinst_LTLIBRARIES += libutil.la -- cgit v1.2.3