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/sqfs/Makemodule.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqfs/Makemodule.am') diff --git a/lib/sqfs/Makemodule.am b/lib/sqfs/Makemodule.am index fa2ac19..f81ced7 100644 --- a/lib/sqfs/Makemodule.am +++ b/lib/sqfs/Makemodule.am @@ -33,7 +33,8 @@ libsquashfs_la_LIBADD += $(ZSTD_LIBS) $(PTHREAD_LIBS) libutil.la if WINDOWS libsquashfs_la_SOURCES += lib/sqfs/win32/io_file.c -libsquashfs_la_LDFLAGS += -no-undefined +libsquashfs_la_CFLAGS += -Wc,-static-libgcc +libsquashfs_la_LDFLAGS += -no-undefined -avoid-version else libsquashfs_la_SOURCES += lib/sqfs/unix/io_file.c endif -- cgit v1.2.3