Commit ecaa13ce authored by Mihai Moldovan's avatar Mihai Moldovan

nx-X11: reintroduce creation of libX11 compat symlinks.

We need this to be able to execute the resulting nxagent binary from within the build directory.
parent 3d17c665
......@@ -58,6 +58,7 @@ XCOMM ---------------------------------------------------------------------
* ComplexProgramTarget_3 (program,locallib,syslib)
* ServerTargetWithFlags (server,subdirs,objects,libs,syslibs,flags)
* ServerTarget (server,subdirs,objects,libs,syslibs)
* LibX11Links ()
* MoveToBakFile (file)
* RMoveToBakFile (file)
* RanLibrary (args)
......@@ -1150,6 +1151,28 @@ clean:: @@\
ServerTargetWithFlags(server,subdirs,objects,libs,syslibs,$(_NOOP_))
#endif /* ServerTarget */
/*
* Creates libX11 compat symlinks to enable execution of rpath-dependent
* programs.
*/
#ifndef LibX11Links
#define LibX11Links() @@\
AllTarget(libX11links) @@\
libX11links: @@\
$(LN) libNX_X11.so $(BUILDLIBDIR)/libX11.so @@\
$(LN) libNX_X11.so.6 $(BUILDLIBDIR)/libX11.so.6 @@\
$(LN) libNX_X11.so.6.3.0 $(BUILDLIBDIR)/libX11.so.6.3.0 @@\
touch libX11links @@\
@@\
clean:: @@\
RemoveFile($(BUILDLIBDIR)/libX11.so) @@\
RemoveFile($(BUILDLIBDIR)/libX11.so.6) @@\
RemoveFile($(BUILDLIBDIR)/libX11.so.6.3.0) @@\
RemoveFile(libX11links)
#endif /* LibX11Links */
#if DoRanlibCmd
#define RanLibrary(args) $(RANLIB) args
#else
......
......@@ -391,6 +391,8 @@ NX_XSHADOWLIBNAME = libXcompshad.so
ServerTarget(nxagent,$(NXAGENTDIRS),$(NXAGENTOBJS), \
$(LIBCWRAPPER) $(NXCOMPEXT) $(NXAGENTLIBS) $(LOADABLEEXTS),$(NXAGENTNXLIBS) $(NXAGENTSYSLIBS) $(NXCOMPEXTSYSLIBS))
LibX11Links()
/*
* Hard coded target to build a static nxagent server.
*/
......
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