Patrick Welche wrote:
>
> ltmain.sh generates wrapper scripts with a relink_command defined. In my
> case, said command correctly has -L/usr/local/lib -L/usr/X11R6/lib, but only
> has -Wl,--rpath -Wl,/usr/local/lib, no X11R6. I was hoping that both the -L
> part and the --rpath part would grab $deplibs ? but they are obviously
> different. Does anyone have a hint? (fresh cvs libtool 1.3c, NetBSD-1.5C/i386)
I'll try and send a patch tonight on how I think 1.3c needs
fixing/changing to properly support NetBSD.
IMO no NetBSD release (well maybe pre 1.4, but I'm sort of forgetting
about them) should require a relink stage. Currently use of
hardcode_into_libs=yes on its own doesn't work and
hardcode_into_libs=all is overkill. I think setting
hardcode_into_libs=yes and shlibpath_overrides_runpath=yes should DTRT.
At the moment cvs libtool doesn't get the rpaths right for dependent
libraries.
I'm still trying to get my head round the code to come up with a fix
that better than the one I've currently got.
Nick