tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "libiconv" package doesn't build under Solaris

On Sat, Jan 02, 2010 at 03:50:18PM +0000, Matthias Scheler wrote:
> On Fri, Jan 01, 2010 at 05:44:32PM +0100, Joerg Sonnenberger wrote:
> > On Thu, Dec 31, 2009 at 06:05:32PM +0000, Matthias Scheler wrote:
> > > It looks like "libtool" thinks that it is linking a program and not
> > > a shared object. I've tried to replace "-shared" with "-module" but
> > > it doesn't help. Any ideas how to fix that?
> > 
> > Can you try adding -rpath ${PREFIX}/lib or so?
> That doesn't fix the problem, and it doesn't look to me like the
> right solution.
> The cause seems to be that "libtool" thinks it is linking a problem
> and is therefore linking with the C startup code which cannot find
> "main" as we are really creating a shared object.

One could argue that libtool is a broken piece of shit. For one thing,
it's WAYS too chumy with the compiler and linker internals.

In OpenBSD, we actually started replacing libtool with something saner.
It's not finished yet, mostly because Xorg is insane and its use of libtool
does not work completely yet, but you might be interested into looking at 
ports/infrastructure/build/libtool in the OpenBSD repository.
(I've had a report that it even works more or less on AIX, even though
it was never tested for portability, and that's a long term goal).

Home | Main Index | Thread Index | Old Index