From acd7c21d72119e2400ca6a38e0530d0b5553ddfd Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 4 Mar 2010 19:51:29 +0200 Subject: [PATCH] Get rid of PLUGIN_PATH --- src/Makefile.am | 3 +-- src/modules/modules.c | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index ee4eac8fef..b8d8b41cf7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -188,8 +188,7 @@ libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \ -DLOCALEDIR=\"$(localedir)\" \ -DSYSCONFDIR=\"$(sysconfdir)\" \ -DDATA_PATH=\"$(vlcdatadir)\" \ - -DPKGLIBDIR=\"$(vlclibdir)\" \ - -DPLUGIN_PATH=PKGLIBDIR\"/plugins\" + -DPKGLIBDIR=\"$(vlclibdir)\" libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \ -no-undefined \ -export-symbols $(srcdir)/libvlccore.sym \ diff --git a/src/modules/modules.c b/src/modules/modules.c index c1de228bb8..1e4a4dfaa7 100644 --- a/src/modules/modules.c +++ b/src/modules/modules.c @@ -820,12 +820,10 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank ) /* Contruct the special search path for system that have a relocatable * executable. Set it to /plugins. */ + assert( vlcpath ); - if( vlcpath && asprintf( &path, "%s" DIR_SEP "plugins", vlcpath ) != -1 ) + if( asprintf( &path, "%s" DIR_SEP "plugins", vlcpath ) != -1 ) vlc_array_append( arraypaths, path ); -#if !defined(WIN32) && !defined(__APPLE__) - vlc_array_append( arraypaths, strdup( PLUGIN_PATH ) ); -#endif /* If the user provided a plugin path, we add it to the list */ char *userpaths = var_InheritString( p_this, "plugin-path" ); -- 2.39.2