On Wed, 22 May 2002, Alexandre Duret-Lutz wrote: > >>> "Henrique" == Henrique de Moraes Holschuh <[EMAIL PROTECTED]> writes: > Henrique> We use ld.so.conf and the ld.so linker itself only, > > Wouldn't it be enough to teach `config.rpath' to *not* output > `-rpath DIR' when `DIR' is already searched by `ld.so'? > Like Libtool does (see `$sys_lib_search_path').
No. First, ld.so may search stuff libtool scripts are not aware of. Second, ld.so.conf may not have been modified yet at package build time. Using runtime data to compile packages has too many caveats to be done lightly. At the very best, it fucks up crosscompilation scenarios. Third, trying to be too clever results in stupid tools that cannot be told to do the right thing when you know better. FYI libtool has a terrible past record on rpath handling. Many of our porters hate libtool with vengeance (or worse), and not many people I've talked to that are downstream for libtool-using packages like it either. So, *please* don't overengineer it. Just give us a --without-rpath switch that actually works, without any clever tricks that are fated to bring even more pain and suffering to Earth. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
