[vlc-devel] [PATCH] modules: allow '-' in module filenames

Thomas Guillem thomas at gllm.fr
Tue Mar 31 14:20:53 CEST 2015


In include/vlc_plugin.h, CONCATENATE was failing due to an unexpected '-'
character.

This fixes build with static modules.
---
 modules/common.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/common.am b/modules/common.am
index c3b3f8e..9ac2929 100644
--- a/modules/common.am
+++ b/modules/common.am
@@ -15,7 +15,7 @@ CLEANFILES = $(BUILT_SOURCES)
 LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
 
 # Module name from object or executable file name.
-MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p="$${p%.lo}"; echo "$$p")
+MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p="$${p//-/\_}"; p="$${p%.lo}"; echo "$$p")
 
 AM_CPPFLAGS = -DMODULE_STRING=\"$(MODULE_NAME)\"
 if HAVE_DYNAMIC_PLUGINS
-- 
2.1.3




More information about the vlc-devel mailing list