Stop redefining libdir, use moduledir for ${libdir}/xrdp
libdir is for shared and static libraries. Some xrdp libraries are loaded dynamically from a non-standard directory, so they are used like modules. Having separate libdir and moduledir would eventually allow to separate dynamically loaded modules from shared libraries.
This commit is contained in:
parent
ffc4efb9ce
commit
dcab7552db
@ -26,7 +26,7 @@ AM_CPPFLAGS = \
|
|||||||
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
||||||
-DXRDP_LOG_PATH=\"${localstatedir}/log\"
|
-DXRDP_LOG_PATH=\"${localstatedir}/log\"
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libcommon.la
|
libcommon.la
|
||||||
|
|
||||||
libcommon_la_SOURCES = \
|
libcommon_la_SOURCES = \
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
#define XRDP_SHARE_PATH "/usr/local/share/xrdp"
|
#define XRDP_SHARE_PATH "/usr/local/share/xrdp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(XRDP_LIB_PATH)
|
#if !defined(XRDP_MODULE_PATH)
|
||||||
#define XRDP_LIB_PATH "/usr/local/lib/xrdp"
|
#define XRDP_MODULE_PATH "/usr/local/lib/xrdp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(XRDP_LOG_PATH)
|
#if !defined(XRDP_LOG_PATH)
|
||||||
|
@ -226,7 +226,8 @@ AC_CHECK_HEADER([X11/extensions/Xrandr.h], [],
|
|||||||
|
|
||||||
CFLAGS="$save_CFLAGS"
|
CFLAGS="$save_CFLAGS"
|
||||||
|
|
||||||
libdir="${libdir}/xrdp";
|
AC_SUBST([moduledir], '${libdir}/xrdp')
|
||||||
|
|
||||||
if test "x${prefix}" = "xNONE" ; then
|
if test "x${prefix}" = "xNONE" ; then
|
||||||
sysconfdir="/etc";
|
sysconfdir="/etc";
|
||||||
localstatedir="/var";
|
localstatedir="/var";
|
||||||
|
@ -37,7 +37,7 @@ AM_CPPFLAGS = \
|
|||||||
-I$(top_srcdir)/common \
|
-I$(top_srcdir)/common \
|
||||||
$(EXTRA_INCLUDES)
|
$(EXTRA_INCLUDES)
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libxrdp.la
|
libxrdp.la
|
||||||
|
|
||||||
libxrdp_la_SOURCES = \
|
libxrdp_la_SOURCES = \
|
||||||
|
@ -7,7 +7,7 @@ AM_CPPFLAGS = \
|
|||||||
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
||||||
-I$(top_srcdir)/common
|
-I$(top_srcdir)/common
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libmc.la
|
libmc.la
|
||||||
|
|
||||||
libmc_la_SOURCES = mc.c
|
libmc_la_SOURCES = mc.c
|
||||||
|
@ -16,7 +16,7 @@ AM_CPPFLAGS = \
|
|||||||
-I$(top_srcdir)/common \
|
-I$(top_srcdir)/common \
|
||||||
$(FREERDP_CFLAGS)
|
$(FREERDP_CFLAGS)
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libxrdpneutrinordp.la
|
libxrdpneutrinordp.la
|
||||||
|
|
||||||
libxrdpneutrinordp_la_SOURCES = xrdp-neutrinordp.c xrdp-color.c
|
libxrdpneutrinordp_la_SOURCES = xrdp-neutrinordp.c xrdp-color.c
|
||||||
|
@ -15,7 +15,7 @@ AM_CPPFLAGS = \
|
|||||||
$(EXTRA_DEFINES) \
|
$(EXTRA_DEFINES) \
|
||||||
-I$(top_srcdir)/common
|
-I$(top_srcdir)/common
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
librdp.la
|
librdp.la
|
||||||
|
|
||||||
librdp_la_SOURCES = \
|
librdp_la_SOURCES = \
|
||||||
|
@ -8,7 +8,7 @@ AM_CPPFLAGS = \
|
|||||||
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
||||||
-I$(top_srcdir)/common
|
-I$(top_srcdir)/common
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libscp.la
|
libscp.la
|
||||||
|
|
||||||
libscp_la_SOURCES = \
|
libscp_la_SOURCES = \
|
||||||
|
@ -7,7 +7,7 @@ AM_CPPFLAGS = \
|
|||||||
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
||||||
-I$(top_srcdir)/common
|
-I$(top_srcdir)/common
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libvnc.la
|
libvnc.la
|
||||||
|
|
||||||
libvnc_la_SOURCES = vnc.c
|
libvnc_la_SOURCES = vnc.c
|
||||||
|
@ -22,7 +22,7 @@ AM_CPPFLAGS = \
|
|||||||
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
||||||
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
|
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
|
||||||
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
||||||
-DXRDP_LIB_PATH=\"${libdir}\" \
|
-DXRDP_MODULE_PATH=\"${moduledir}\" \
|
||||||
$(EXTRA_DEFINES) \
|
$(EXTRA_DEFINES) \
|
||||||
-I$(top_builddir) \
|
-I$(top_builddir) \
|
||||||
-I$(top_srcdir)/common \
|
-I$(top_srcdir)/common \
|
||||||
|
@ -357,7 +357,7 @@ xrdp_mm_setup_mod1(struct xrdp_mm *self)
|
|||||||
|
|
||||||
if (self->mod_handle == 0)
|
if (self->mod_handle == 0)
|
||||||
{
|
{
|
||||||
g_snprintf(text, 255, "%s/%s", XRDP_LIB_PATH, lib);
|
g_snprintf(text, 255, "%s/%s", XRDP_MODULE_PATH, lib);
|
||||||
/* Let the main thread load the lib,*/
|
/* Let the main thread load the lib,*/
|
||||||
self->mod_handle = g_xrdp_sync(xrdp_mm_sync_load, (tintptr)text, 0);
|
self->mod_handle = g_xrdp_sync(xrdp_mm_sync_load, (tintptr)text, 0);
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ AM_CPPFLAGS = \
|
|||||||
$(EXTRA_DEFINES) \
|
$(EXTRA_DEFINES) \
|
||||||
$(EXTRA_INCLUDES)
|
$(EXTRA_INCLUDES)
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libxrdpapi.la
|
libxrdpapi.la
|
||||||
|
|
||||||
libxrdpapi_la_SOURCES = \
|
libxrdpapi_la_SOURCES = \
|
||||||
|
@ -9,7 +9,7 @@ AM_CPPFLAGS = \
|
|||||||
$(EXTRA_DEFINES) \
|
$(EXTRA_DEFINES) \
|
||||||
$(EXTRA_INCLUDES)
|
$(EXTRA_INCLUDES)
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libxrdpvr.la
|
libxrdpvr.la
|
||||||
|
|
||||||
libxrdpvr_la_SOURCES = \
|
libxrdpvr_la_SOURCES = \
|
||||||
|
@ -7,7 +7,7 @@ AM_CPPFLAGS = \
|
|||||||
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
||||||
-I$(top_srcdir)/common
|
-I$(top_srcdir)/common
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libxup.la
|
libxup.la
|
||||||
|
|
||||||
libxup_la_SOURCES = xup.c
|
libxup_la_SOURCES = xup.c
|
||||||
|
Loading…
Reference in New Issue
Block a user