Joerg Sonnenberger wrote:
On Fri, Apr 13, 2007 at 10:01:48AM -0700, Matthew Dillon wrote:The real problem here is that until the linker is changed to use rpaths by default, we are stuck with the pathing mechanism... we can't require that normal users use -rpath options in their compiles.Requiring -rpath is and was the default on a number of Unix platforms. The canonical exceptions are Linux and FreeBSD. That the former is clueless I don't have to say. The latter inherited it from a.out and never switched. I don't think it is a good base to reason upon given all the other clutches kept e.g. not using normal ELF naming for libraries etc.
Isn't it possible to have an implicit -rpath setting? So for instance, if I link -L/usr/lib/foo -lfoo that the binary will get /usr/lib/foo as rpath (if libfoo was found there). With this we could get away from the ld cache. cheers simon -- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
signature.asc
Description: OpenPGP digital signature
