add export symbols flag for mingw build fixes #1383
authorj <j@xiph.org>
Sun, 22 Jun 2008 13:24:13 +0000 (13:24 +0000)
committerj <j@xiph.org>
Sun, 22 Jun 2008 13:24:13 +0000 (13:24 +0000)
svn path=/trunk/theora/; revision=15055

configure.ac

index 9f3fee8..5a0989c 100644 (file)
@@ -57,6 +57,7 @@ AC_PROG_CPP
 CFLAGS="$cflags_save"
 
 AM_PROG_CC_C_O
+AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
 
 dnl Add parameters for aclocal
@@ -204,6 +205,14 @@ THENC_VERSION_ARG=""
 TH_VERSION_ARG=""
 if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
  case "$target_os" in
+  *mingw*)
+    THEORA_LDFLAGS="$THEORA_LDFLAGS -no-undefined"
+    THDEC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoradec-all.def"
+    THENC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoraenc-all.def"
+    THENC_VERSION_ARG="$THENC_VERSION_ARG -ltheoradec"
+    THC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/libtheora.def"
+    AC_MSG_RESULT([no])
+    ;;
   linux* | solaris* )
     THDEC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-dec'
     THENC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-enc'