diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-13 12:54:26 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-23 13:56:33 +0200 |
commit | ff7b3f625de273b76f36a1e91d5823b9f5787007 (patch) | |
tree | db3fcf1a1ba5d78ca1ba1ed3f5819cd3ff6f424a /lib/util | |
parent | 063f57dec14986d1895d83d9113fd1dec7f135f4 (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/Makemodule.am | 3 |
1 files changed, 2 insertions, 1 deletions
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 |