6 ms·
IMO RPATH is fine, but $ORIGIN-relative RPATH values are best. That said, it's generally very difficult to build deploy-time relocatable code in Unix-land. Th
by cryptonector 5y ago
IMO RPATH is fine, but $ORIGIN-relative RPATH values are best.
That said, it's generally very difficult to build deploy-time relocatable code in Unix-land. The problem is that there's nothing like $ORIGIN for finding static assets, and all the autoconf tooling just makes it so easy to make all paths in object code by absolute paths that include the install $prefix/$bindir/$libdir/$sharedir/$statedir/$etcdir, etc.
Not that one cannot write deploy-time relocatable code -- I've done it plenty. But that it requires so much foreknowledge, intent, and know-how, that it just doesn't get done.