Gentoo Archives: gentoo-alt

From: Perry Smith <pedzsan@×××××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] AIX linking adventure
Date: Sun, 13 Feb 2011 15:07:43
In Reply to: Re: [gentoo-alt] AIX linking adventure by Michael Haubenwallner
On Feb 10, 2011, at 11:26 AM, Michael Haubenwallner wrote:

>>>>> Although runpath search is affected by LIBPATH, I'm just fine with that. >>>>> This is the outcome of using "-L" and "-l" linker flags together. >>>> I thought this was one of your objectives based on the fact that java sets LIBPATH >>>> to something weird and it breaks everything. >>> Nope. The problem with LIBPATH set by java was that there is nothing >>> like "soname". Iff my binary had searched for the /file/ "" >>> (either archive or not) instead of "libiconv.a(", even with >>> LIBPATH set to "/usr/lib" it would not have found "/usr/lib/libiconv.a" >>> (without "" member), but continued along LIBPATH + runpath >>> until it found the "" file in its usual place. >> Hmmm... ok. I had forgotten that detail. > > Yes, a detail - but a really important one for package managers.
It occurred to me that this was true in your particular situation but if Java (or a user) removes key paths from LIBPATH, the runtime search will fail. Having 100% hardcoded paths solves that issue. So, the system you have developed solves the particular issue with Java but not the bigger issue of setting LIBPATH to some whacko thing. Perry


Subject Author
Re: [gentoo-alt] AIX linking adventure Michael Haubenwallner <haubi@g.o>