summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac10
-rw-r--r--src/Makefile.am3
2 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 06cbed4..aa897ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,16 @@ fi
AM_CONDITIONAL([ENABLE_DOCS],[test "x$DOC_SUB" = "xdoc"])
AC_SUBST([DOC_SUB])
+win32=no
+case $host_os in
+ *mingw*)
+ win32=yes
+ ;;
+ *)
+ ;;
+esac
+AM_CONDITIONAL([WIN32], [test x$win32 = xyes])
+
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_OUTPUT([
diff --git a/src/Makefile.am b/src/Makefile.am
index 19b2d85..7bedc4e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,4 +8,7 @@ libvformat_la_SOURCES = vf_access.c vf_malloc.c vf_strings.c vf_access_wrapper
EXTRA_DIST = *.h
libvformat_la_LDFLAGS = -version-info 0
+if WIN32
+ libvformat_la_LDFLAGS += -no-undefined
+endif