libtool
[Top][All Lists]
Advanced

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

Re: libtool doesn't pass LDFLAGS to linker - Solaris 64 bit


From: Jaimon Jose
Subject: Re: libtool doesn't pass LDFLAGS to linker - Solaris 64 bit
Date: Tue, 17 Jan 2006 14:07:58 +0530
User-agent: Thunderbird 1.5 (X11/20051201)


Ralf Wildenhues wrote the following on 01/15/2006 09:51 PM:
Hi Jaimon,

* Jaimon Jose wrote on Sat, Jan 14, 2006 at 07:25:34PM CET:
Compiler flag -xarch=v9 or -xarch=generic64 ( sunstudio 8 onwards ) is used to build 64 bit object files. The same flag needs to be provided to the linker driver, so that the compiler driver picks up the correct runtime libraries before calling the linker. However, libtool is not passing the LDFLAGS before invoking the linker driver. I'm building it on Solaris 8 with both SunForte U2 and SunStudio 11. Libtool used is 1.5.18.

This should be fixed in Libtool-1.5.22.
Thanks for the heads up. Libtool-1.5.22 passes the linker flags correctly. I see a new problem with this. Shared library extension is not passed correctly, 'cause of which extension is missing from shared libraries. ( For eg. libname.1.1.1 ) The problems seems to be with un-initiallized shrext_cmds variable. This is initialized in link mode only if a shrext argument is found in the command line. Shouldn't this be initialized by default ( as soon as you enter link mode ) with variable shrext ? ( I tried this and that seems to be solving the problem )

Thanks
--jaimon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]