Commit c422a523 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

LIBDL may be required regardless of plugins (e.g. v4l2)

parent a35aed09
......@@ -649,14 +649,8 @@ AS_IF([test "${SYS}" = "mingw32"], [
have_dynamic_objects="yes" #assume we can use shared objects
])
test "${enable_shared}" = "no" && have_dynamic_objects=no
AS_IF([test "${have_dynamic_objects}" != "no"], [
AC_DEFINE(HAVE_DYNAMIC_PLUGINS, 1,
[Define to 1 if dynamic plugins are supported.])
], [
dnl Clear $LIBDL so as not to break linking
LIBDL=""
AS_IF([test "${enable_shared}" = "no"], [
have_dynamic_objects=no
])
AM_CONDITIONAL(HAVE_DYNAMIC_PLUGINS, [test "${have_dynamic_objects}" != "no"])
......
......@@ -171,6 +171,9 @@ AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
-DPKGDATADIR=\"$(vlcdatadir)\" \
-DPKGLIBDIR=\"$(vlclibdir)\"
AM_CFLAGS = $(CFLAGS_libvlccore)
if HAVE_DYNAMIC_PLUGINS
AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
endif
libvlccore_la_SOURCES = $(SOURCES_libvlc)
libvlccore_la_LDFLAGS = \
......
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