Commit ba620a05 authored by Mike Gabriel's avatar Mike Gabriel

Load libNX_X11 / faked libX11 via RPATH setting rather than fidgeting with…

Load libNX_X11 / faked libX11 via RPATH setting rather than fidgeting with LD_LIBRARY_PATH in the nxagent wrapper script. Fixes ArcticaProject/nx-libs#225.
parent 9d1da072
......@@ -20,6 +20,5 @@ NX_LIBDIR=@@NXLIBDIR@@
# make sure nxagent starts properly with pam_tmpdir.so being in use
NX_TEMP=${NX_TEMP:-/tmp}
export NX_TEMP
export LD_LIBRARY_PATH=@@NX_LIBDIR@@/X11/
exec $NX_LIBDIR/bin/${NXAPP:-"nxagent"} "$@"
......@@ -723,12 +723,12 @@ TCLIBDIR = TclLibDir
#ifndef UsrLibDir
#ifdef ProjectRoot
#define UsrLibDir Concat4(ProjectRoot,/,LibDirName,/nx)
#define UsrLibDir Concat4(ProjectRoot,/,LibDirName,/nx/X11)
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir YES
#endif
#else
#define UsrLibDir Concat4(/usr/local,/,LibDirName,/nx)
#define UsrLibDir Concat4(/usr/local,/,LibDirName,/nx/X11)
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir NO
#endif
......
......@@ -39,9 +39,9 @@
#endif
#ifdef X11ProjectRoot
# define XUsrLibDirPath $(USRLIBDIR)/nx:$(XPROJECTROOT)
# define XUsrLibDirPath $(USRLIBDIR):$(XPROJECTROOT)
#else
# define XUsrLibDirPath $(USRLIBDIR)/nx
# define XUsrLibDirPath $(USRLIBDIR)
#endif
#ifdef UsrLibDirPath
# undef UsrLibDirPath
......
......@@ -9,7 +9,7 @@
#endif
#ifndef UseRpath
#define UseRpath NO
#define UseRpath YES
#endif
#if UseElfFormat
......
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