Commit 6d6f71108064f5069edd7bf771059d3b82640135

Reini Urban 2012-07-07T12:42:00

cygwin/mingw shared libs need libtool LDFLAGS = -no-undefined otherwise only static libs are created.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Makefile.am b/Makefile.am
index 16f32a6..6de5607 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -198,7 +198,7 @@ if FFI_DEBUG
 AM_CFLAGS += -DFFI_DEBUG
 endif
 
-libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
+libffi_la_LDFLAGS = -no-undefined -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
 
 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src -DFFI_BUILDING
 AM_CCASFLAGS = $(AM_CPPFLAGS) -g