bug-libtool
[Top][All Lists]
Advanced

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

Re: cxx/OSF1 trouble


From: Ralf Wildenhues
Subject: Re: cxx/OSF1 trouble
Date: Mon, 7 Mar 2005 08:52:43 +0100
User-agent: Mutt/1.4.1i

Hi Patrick,

* Patrick Guio wrote on Thu, Feb 17, 2005 at 06:31:43PM CET:
> 
> I am using libtool (version 1.5.14) on a Alpha machine running OSF1 
> (version 5.1) for C++
> I have to force to use a non dynamic library. It can be done with cxx/ld 
> on this platform with the options -noso/-so_archive like
> -noso -lastaticlib -lanotherstaticlib -so_archive
> But libtool does not recognise those option correctly and the 
> -noso/-so_archive options are reorganised in such a way that they are 
> useless. Here is an example:
> 
> /bin/ksh ../libtool --tag=CXX --mode=link cxx  -std ansi
> -D__USE_STD_IOSTREAM -DBZ_ENABLE_XOPEN_SOURCE -D_OSF_SOURCE -ieee -model
> ansi -accept restrict_keyword -nousing_std -DNDEBUG -fast -inline speed
> -nocleanup -o PoissonBoltzmann3d -ptr cxx_repository -ptr ../lib/mudfas3d 
> -ptr
> ../lib/mudfas-utils PoissonBoltzmann3d-TestSolver.o ../lib/libmudfas3d.la
> ../lib/libmudfas-utils.la -lmfhdf -noso -ldf -lsz -ljpeg -lz -so_archive -lm
>                                   ^^^^^                      ^^^^^^^^^^^
> 
> gets executed as
> cxx -std ansi -D__USE_STD_IOSTREAM -DBZ_ENABLE_XOPEN_SOURCE -D_OSF_SOURCE
> -ieee -model ansi -accept restrict_keyword -nousing_std -DNDEBUG -fast
> -inline speed -nocleanup -o PoissonBoltzmann3d -ptr cxx_repository -ptr
> ../lib/mudfas3d -ptr ../lib/mudfas-utils PoissonBoltzmann3d-TestSolver.o
> -noso -so_archive ../lib/.libs/libmudfas3d.a
> ^^^^^ ^^^^^^^^^^^
> ../lib/.libs/libmudfas-utils.a -lmfhdf -ldf -lsz -ljpeg -lz -lm
> 
> Any idea of how to fix this?

This is a known bug in current Libtool versions.  It's on the TODO list,
but it's not the easiest to solve.  Once the reordering of the command
line arguments is fixed, though, you should be able to achieve this.
The flags will be named differently, however (Libtool ought to translate
them to `-noso' and `-so_archive').

Regards,
Ralf




reply via email to

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