Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <417F09EC.1070800@cwilson.fastmail.fm>
Date: Tue, 26 Oct 2004 22:37:32 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 MultiZilla/1.6.4.0b
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Avail for test: libtool-devel-1.9f_20041024-1, libltdl6-1.9f_20041024-1
References: <90459864DAD67D43BDD3D517DEFC2F7D7239@axon.Axentia.local> <87-1479539615.20041025174846@familiehaase.de>
In-Reply-To: <87-1479539615.20041025174846@familiehaase.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Gerrit P. Haase wrote:

> libpthread should be in the list of libraries where these tests are
> skipped, like it is for libstdc++ or libgcc and others, 

Nope.  MAYBE it should be skipped, like -lc and -lm are skipped.  But 
libstdc++ and libgcc are a different kettle of fish.

libtool specifically checks for -lc and -lm on the command line, and has 
special purpose code to ignore them when running on cygwin.  This was 
done as a convenience, back before the cygwin project provided the 
import stubs libc.a and libm.a, since many Makefiles blindly add -lc or 
-lm to their link commands.  Now, of course, we have libm.a and libc.a 
import stubs, so this convenience is no longer necessary.  But it 
doesn't hurt anything, so it's still there.

(So you see, I don't really think it's a good idea to perpetuate the 
no-longer-necessary convenience by adding yet another special case 
library -lpthread.)

Now, stuff like libstdc++ is handled differently.  Libtool detects which 
flags and libs are added to the command line by the compiler driver 
(gcc, g++, etc) when linking a shared library.  Needless to say, 
libpthread.a is not one of this type.

> if it is not
> included, try the snapshot Charles provided which includes probably some
> more cygwin related fixes than f-d = 2 versions before the current
> snapshot, and if this fails too, then please come back.

(a) this problem originally arose because of an error in the user's 
configure.ac.  However, once that was corrected, THIS part of libtool 
worked as expected (that is, correctly).  I don't want to add yet 
another special case library to the -lc,-lm kludge; I'd rather *remove* 
the -lc,-lm special case since, with a properly configured system, it's 
not necessary.

Will address other issue in separate message.

--
Chuck




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

