On Saturday 26 September 2009 10:48:53 Andrey Grozin wrote: > On Sat, 26 Sep 2009, Mike Frysinger wrote: > >> so long as the linker looks at /usr/lib before /lib, which is usually > >> the case, unless "-L/lib" is passed to ld (by way of gcc) > > > > incorrect -- link order doesnt matter here with readline-6 > > Here's a specific example: sci-mathematics/pari-2.3.4-r1. It has a > hand-written Configure script (not configure). It searches for > libreadline.so in a list of directories, and sees that it points to > libreadline.so.5 (this is after libreadline-5 has been unmerged). So, it > adds -l libreadline.so.5 to the linking flags. Clearly, this is not the > desired behaviour. What can be done to avoid it?
the configure script is broken and it should be fixed. linking directly against a SONAME is wrong. -mike
signature.asc
Description: This is a digitally signed message part.