Autoconf, Libraries, Programs and RPATH

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
canavan
Posts: 754
Joined: Mon Jul 21, 2003 6:19 am

Autoconf, Libraries, Programs and RPATH

Unread postby canavan » Sat Jan 19, 2013 2:23 pm

Autoconf/Automake/libtool apparently fail to install convenience Libraries if an RPATH is set via LDFLAGS, e.g.

Code: Select all

-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?

User avatar
duck
Posts: 583
Joined: Mon Oct 27, 2003 5:22 pm
Location: Jakobstad, Finland
Contact:

Re: Autoconf, Libraries, Programs and RPATH

Unread postby duck » Sat Jan 19, 2013 4:01 pm

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, octane
N.B.: I tend to talk out of my ass. Do not take it too seriously.

User avatar
vishnu
Posts: 2189
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Autoconf, Libraries, Programs and RPATH

Unread postby vishnu » Sat Jan 19, 2013 6:07 pm

Pass -non_shared to the compiler?
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

User avatar
canavan
Posts: 754
Joined: Mon Jul 21, 2003 6:19 am

Re: Autoconf, Libraries, Programs and RPATH

Unread postby canavan » Sun Jan 20, 2013 7:38 am

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.

User avatar
vishnu
Posts: 2189
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Autoconf, Libraries, Programs and RPATH

Unread postby vishnu » Sun Jan 20, 2013 3:28 pm

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
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

hamei
Posts: 10000
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: Autoconf, Libraries, Programs and RPATH

Unread postby hamei » Sun Jan 20, 2013 6:35 pm

Won't help the problem but might make you feel better :

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

About twelve paragraphs down ....


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest