delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/13/02:26:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sun, 13 Jan 2008 20:25:44 +1300
From: Danny Smith <dannysmith AT clear DOT net DOT nz>
Subject: Re: cygwin, g++ and boost? Do I need dll.a?
To: Cygwin <cygwin AT cygwin DOT com>
Message-id: <000001c855b5$830714a0$cb4861cb@THOMAS>
MIME-version: 1.0
X-Mailer: Microsoft Outlook, Build 10.0.2627
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

At http://www.cygwin.com/ml/cygwin/2008-01/msg00158.html
Charles Wilson said:

> With -static, -lxxx only looks for:
>
>          libxxx.a
>          xxx
>
>
> Note that, oddly, in -static mode a MS-style library name "xxx.lib"
> will be ignored, while in (normal) mode it will be used if found (and
> the other patterns ahead of it are not found). Just an odd little
quirk.


That's not right. In -static mode, the binutils/ld/emultempl/pe.em
function: gld_${EMULATION_NAME}_find_potential_libraries will (failing
to find lib*.a) find *.lib as static archives 

To test, just rename libkernel32.a to kernel32.lib (import libs are just
special static archives) and build a simple 'hello_world.c' testcase
with
-static 

Danny




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