> On Jun 20, 2018, at 20:28, Jon Trulson <j...@radscan.com> wrote: > [...] >> Would switching to autotools also solve the rpath problem? > > Possibly, as I understand libtool changed it's behavior WRT to rpath. > > In CDE for linux, rpath is added via ExtraLoadFlags in > config/cf/lnxLib.rules. You could probably just override that in hosts.def > yourself and see what happens. > > According to https://wiki.debian.org/RpathIssue, there is this paragraph > which would seem to apply to CDE: > > "While there's no policy dictating the accepted use of RPATH, it's been a > general consensus that RPATH use is discouraged, given the interactions > between the above reasons and Debian's way of dealing with libraries and > package dependencies. > > Currently, the only generally accepted use of this feature in Debian is to > add non-standard library path (like /usr/lib/<package>) to libraries that are > only intended to be used by the executables or other libraries within the > same source package. " > > So... not a big deal it would appear..? >
Newer systems with ELF format ld.so dynamic linker support $ORIGIN, i.e. something like -Wl,-rpath=$ORIGIN/../lib for a binary in somewhere like /opt/cde/bin to find its package-private libraries in /opt/cde/lib, with the whole tree relocatable (assuming that other non-linker references also had their own way of doing something similar). That or something like it should address packaging concerns for most platforms, I should think. Mac's Mach-O format and dyld dynamic linker support something similar, @loader_path; doubtless if the day comes for a Mac port, there are differences in command line args needed, etc; but the principle remains, at least. Some quite old ELF ld.so implementations may not support $ORIGIN; Solaris 9 (and even before, if with some quirks) does. I have no personal experience with the object formats and dynamic linker capabilities on CDE platforms other than Solaris and Linux, although I gather that HP-UX uses ELF rather than an earlier proprietary format for 64-bit, and at some point switched to ELF for 32-bit executables, too; and it seems to have $ORIGIN or something like iT. OTOH, it appears AIX uses XCOFF format and does not have a similar facility, although that might be old info.
signature.asc
Description: Message signed with OpenPGP
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel