Do not compile libmtxcommon as a DLL unless both libebml and libmatroska have been built as a DLL. Otherwise linking will result in duplicate symbols.

This commit is contained in:
Moritz Bunkus 2005-02-07 22:18:44 +00:00
parent 40b6c41a9b
commit d33fc2598a

View File

@ -668,6 +668,10 @@ using namespace libmatroska;
MATROSKA_CFLAGS="$MATROSKA_CFLAGS -DMATROSKA_DLL" MATROSKA_CFLAGS="$MATROSKA_CFLAGS -DMATROSKA_DLL"
fi fi
if test x"${ac_cv_ebml_dll}" != "xyes" -o x"${ac_cv_matroska_dll}" != "xyes" ; then
LIBMTXCOMMONDLL=0
fi
AC_SUBST(MATROSKA_CFLAGS) AC_SUBST(MATROSKA_CFLAGS)
AC_SUBST(MATROSKA_LIBS) AC_SUBST(MATROSKA_LIBS)