Commit de592b02 authored by Christophe Mutricy's avatar Christophe Mutricy

Use DLL_EXPORT only on win

parent f8a61148
...@@ -5636,9 +5636,11 @@ dnl Pic and shared libvlc stuff ...@@ -5636,9 +5636,11 @@ dnl Pic and shared libvlc stuff
dnl dnl
AS_IF([test "${SYS}" = "mingw32" || test "${enable_libtool}" != "no"], [ AS_IF([test "${SYS}" = "mingw32" || test "${enable_libtool}" != "no"], [
AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.]) AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.])
FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll"
VLC_ADD_PLUGINS([${BUILTINS}]) VLC_ADD_PLUGINS([${BUILTINS}])
VLC_ADD_CPPFLAGS([libvlc],[-DDLL_EXPORT]) AS_IF([test "${SYS}" = "mingw32"], [
FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll"
VLC_ADD_CPPFLAGS([libvlc],[-DDLL_EXPORT])
])
BUILTINS="" BUILTINS=""
], [ ], [
LDFLAGS_vlc="${LDFLAGS_vlc} ${LDFLAGS_libvlc}" LDFLAGS_vlc="${LDFLAGS_vlc} ${LDFLAGS_libvlc}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment