delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/19/12:01:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 19 Aug 2005 12:01:22 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Trying to build crm114 (20050721) under CygWin 1.5.18-1
Message-ID: <20050819160122.GB14441@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <EILH4L4-0007JS-3C AT mail2 DOT learnquick DOT com> <4305F226 DOT CD82A7FD AT dessent DOT net> <4305F8FD DOT 3080104 AT familiehaase DOT de> <Pine DOT GSO DOT 4 DOT 61 DOT 0508191127280 DOT 16057 AT slinky DOT cs DOT nyu DOT edu> <4305FF5B DOT 2421ED2A AT dessent DOT net>
Mime-Version: 1.0
In-Reply-To: <4305FF5B.2421ED2A@dessent.net>
User-Agent: Mutt/1.5.8i

On Fri, Aug 19, 2005 at 08:48:43AM -0700, Brian Dessent wrote:
>Igor Pechtchanski wrote:
>
>> Umm, Gerrit, I don't think the underlined part is true anymore:
>> 
>> $ cd /usr/lib && ls -li libm.a libcygwin.a
>> 1407374883609665 -r-xr-xr-x+ 1 igor Users 956656 Jul  2 20:30 libcygwin.a*
>> 1407374883609668 -r-xr-xr-x+ 1 igor Users  92616 Jul  2 20:30 libm.a*
>> $ uname -a
>> CYGWIN_NT-5.1 pechtcha 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
>> 
>> -lcygwin *is* added automatically, but not -lm.
>
>libm is a subcomponent of the final cygwin1.dll, which merges several
>such components.  There's also libpthread, libc, libserver, libutil, the
>malloc code, the startup code (etc.) all of which are combined to make
>cygwin1.dll.  As far as I know this is only done for link efficiency, as
>these sub-libs are never distributed and probably don't work as
>standalone libraries.

Adding -lm is a complete no-op.  I dont' think it will improve any link
efficieny since it is just a subcomponent of libcygwin.a and libcygwin.a
is always searched anyway.

Removing it from link lines is the way to go, IMO.

cgf

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019