From 1b096ae6bff0a28f952ac91f2882587ab3f19228 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 10 Feb 2013 22:27:58 +0100 Subject: fixed win32 shared lib creation --- configure.ac | 10 ++++++++++ src/Makefile.am | 3 +++ 2 files changed, 13 insertions(+) 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 -- cgit v1.1-32-gdbae