[xiph-commits] r15055 - trunk/theora

j at svn.xiph.org j at svn.xiph.org
Sun Jun 22 06:24:14 PDT 2008


Author: j
Date: 2008-06-22 06:24:13 -0700 (Sun, 22 Jun 2008)
New Revision: 15055

Modified:
   trunk/theora/configure.ac
Log:
add export symbols flag for mingw build fixes #1383

Modified: trunk/theora/configure.ac
===================================================================
--- trunk/theora/configure.ac	2008-06-22 05:24:31 UTC (rev 15054)
+++ trunk/theora/configure.ac	2008-06-22 13:24:13 UTC (rev 15055)
@@ -57,6 +57,7 @@
 CFLAGS="$cflags_save"
 
 AM_PROG_CC_C_O
+AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
 
 dnl Add parameters for aclocal
@@ -204,6 +205,14 @@
 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'



More information about the commits mailing list