SGI: Development

Autoconf, Libraries, Programs and RPATH

Autoconf/Automake/libtool apparently fail to install convenience Libraries if an RPATH is set via LDFLAGS, e.g.
Code:
-Wl,-rpath -Wl,/usr/nekoware/lib

Somehow, libtool comes to believe that convenience libraries need to be build dynamically, but since they are not to be installed, the entire installation fails. However, I'd like to set an rpath for the binaries, so that I don't have to set an LD_LIBRARY_PATH and potentially confuse programs linked against older IRIX system libraries. Obviously, this is a problem for any program that makes use of convenience libraries in the build process, or even libraries that come with demo programs. Does anyone know a workaround for this?
It should be possible, pkgsrc patched autotools does this. I have no idea how though, there's a hell of a lot of magic going on there. I mean sparkly rabbits in top hats with doves in sleeves level magic.

_________________
:Octane: halo , oct ane
N.B.: I tend to talk out of my ass. Do not take it too seriously.
Pass -non_shared to the compiler?
How would I pass -non_shared to the compiler, if I still want some shared libraries to be built in the process?

Patching libtool seems possible, but would require always up-to-date autostuff to be able to autoreconf everything.
So you're saying there's no way to do it by skipping rpath and just using autoconf's installation directory variables? For example: http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Installation-Directory-Variables.html
Won't help the problem but might make you feel better :

http://queue.acm.org/detail.cfm?id=2349257

About twelve paragraphs down ....