Re: libtool C++ link bug with -lm functions with Sun Workshop compiler

2008-03-20 Thread Bob Friesenhahn

On Thu, 20 Mar 2008, Tim Mooney wrote:


Perhaps it is not best to run most of your configure script using the C++ 
compiler.  Only run the C++ compiler to test C++ things.


I don't disagree, but at the same time, if everything a project is going
to build is going to be compiled by the C++ compiler, doesn't it make
sense for the C++ compiler to actually do the tests?  If it's the C++


Good point.  However, it may be that some autoconf tests intended for 
C don't work properly when used with the C++ compiler.



compiler that needs to see the prototype for sqrt(), and it's the C++
compiler that's going to initiate the link, it doesn't make a lot of
sense for the tests to be conducted by the C compiler.  That's hardly a
good test; there are several reasons why what the C compiler can see for
prototypes or test link might differ from what the C++ compiler would.

There are projects out there, beyond GNU aspell, that are using the C++
compiler for many of the configure tests.  Are they all wrong to do so?


I don't recall if you mentioned the libtool version you are using. 
Libtool 2.2 usually uses the C++ compiler to link C++ programs and 
libraries.  I just re-verified that it does do so for Solaris 10 with 
the Studio 12 compiler.  Upgrading to 2.2, or the first subsequent 
release (scheduled for April 1st) may be the solution you are looking 
for.


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



___
http://lists.gnu.org/mailman/listinfo/libtool


Re: MinGW linux to win32 cross compiler and the test suite

2008-03-20 Thread Ralf Wildenhues
Hello Erik,

* Erik de Castro Lopo wrote on Fri, Mar 21, 2008 at 12:04:00AM CET:
 
 I have a project that uses autoconf/automake/libtool and I'm
 currently experimenting with the i586-mingw32msvc linux hosted,
 win32 target cross compiler tool chain. I'm also using Wine
 to do two things; allow configure tests that need to run an
 executable to work correctly, execute the test suite.
 
 The problem I'm having is that the wrapper scripts generated
 by ltmain.sh in the tests/ directory cannot find the generated
 DLL in the src/.lib/ directory. Is this a bug or am I doing 
 something wrong?

Not sure.  Do the scripts set PATH to contain the directory?
Can you post the link command and its output, and the wrapper
script?

 I'm using libtool version 1.5.26.

FWIW, 2.2 is the current stable but it has a bug regarding
cross-compile to w32 which has only been fixed in the CVS
version.  It works differently wrt. the wrappers, though.

Cheers,
Ralf


___
http://lists.gnu.org/mailman/listinfo/libtool