On Fri, 21 Sep 2001 [EMAIL PROTECTED] wrote:

> On Thu, Sep 20, 2001 at 09:38:29PM -0500, Bob Friesenhahn wrote:
> > 64-bit compilation under Solaris & Sun's compiler requires that the
> > argument '-xarch=v9' be provided when compiling C++ objects.
> > Unfortunately libtool (1.4a (1.641.2.259 2001/06/04 19:32:47)) is
> > discarding this argument (which was passed via LDFLAGS to configure)
> > so objects are built as 32-bit objects instead.  Is a fix for this
> > available?
> 
> Does Sun ld(1) even support -xarch? I just checked the manpage on a
> Solaris 8/SPARC 64-bit system and didn't see mention of it. I also
> tried linking a library using ld(1) with -xarch=v9 as an argument and
> got an error.

The way Sun's build environment supports 64-bit compilation, it is
only necessary to build all objects using -xarch=v9.  The linker is
responsible for selecting the correct mode based on the mode of the
objects.  All linked objects must be built for the same model or
linking will fail.

> Anyway, *without* having LDFLAGS="-xarch=v9", I built HEAD and
> ran nm on libltdl/.libs/libltdl.so.3.1.0:
>   $ nm libltdl/.libs/libltdl.so.3.1.0
>   libltdl.so.3.1.0:       ELF 64-bit MSB dynamic lib SPARCV9 Version ...

How is it that 64-bit was selected unless you requested it?

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED]
http://www.simplesystems.org/users/bfriesen


_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to