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