Commit a110441d authored by Sam Hocevar's avatar Sam Hocevar

* do not use a dynamic linker if no plugin support was detected/requested.

parent 9e3dfd25
......@@ -4257,6 +4257,7 @@ fi
dnl Export automake variables
if ${plugin_support}
then
AC_DEFINE(HAVE_DYNAMIC_PLUGINS, 1, Define if we have support for dynamic plugins)
for plugin in `echo ${PLUGINS}`
do
eval "${plugin}_p=yes"
......
......@@ -51,8 +51,9 @@
# include <unistd.h>
#endif
#define HAVE_DYNAMIC_PLUGINS
#if defined(HAVE_DL_DYLD)
#if !defined(HAVE_DYNAMIC_PLUGINS)
/* no support for plugins */
#elif defined(HAVE_DL_DYLD)
# if defined(HAVE_MACH_O_DYLD_H)
# include <mach-o/dyld.h>
# endif
......@@ -73,8 +74,6 @@
# if defined(HAVE_DL_H)
# include <dl.h>
# endif
#else
# undef HAVE_DYNAMIC_PLUGINS
#endif
#include "vlc_error.h"
......
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