delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/01/12:26:15

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: Tue, 1 Feb 2005 12:26:39 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problems creating "-mno-cygwin" DLLs with libtool.
Message-ID: <20050201172639.GH4911@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <030801c50873$a0dd3500$e6ec6f83 AT robinson DOT cam DOT ac DOT uk> <NUTMEG3H9Fouml2dx88000003dc AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
In-Reply-To: <NUTMEG3H9Fouml2dx88000003dc@NUTMEG.CAM.ARTIMI.COM>
User-Agent: Mutt/1.4.1i

On Tue, Feb 01, 2005 at 03:56:17PM -0000, Dave Korn wrote:
>> -----Original Message-----
>> From: cygwin-owner On Behalf Of Max Bowsher
>> Sent: 01 February 2005 15:35
>
>> Vladius wrote:
>
>> >    As U can see... it automatically passes -lcygwin flag to the
>> > linker(g++). When cygcheck'ing resulting DLL it lists 
>> cygwin DLL as one
>> > of its dependencies.
>> > I heard somewhere that cygwin is requierd for DLL 
>> initialisation, is it true?
>
>  I dunno, but I see lotsa references to something called
>'_cygwin_noncygwin_dll_entry AT 12' which sounds fairly suggestive.... then again,
>you can't always tell what a subroutine does from the name.
>
>> > The interesting thing is that linking against resulting DLL with
>> > so-called "-mno-cygwin -lcygwin" mix results in program startup
>> > failure(no errors, it just hangs).
>> >    Any ideas on how to create cygwin independent DLL with libtool?
>> 
>> Perhaps.
>> But unless it *directly* relates to the special courtesy provision 
>> of -mno-cygwin, it's a matter independent of cygwin, and thus 
>> independent of this mailing list!
>
>  If the cygwin port of libtool passes two conflicting flags (-mno-cygwin and
>-lcygwin) to the underlying compiler, then it's a cygwin problem, surely?

Has it been established that the cygwin version of libtool is *supposed*
to handle mingw?  I'd be rather surprised if that was a goal.

OTOH, I never have understood why tools insist on including such things as
"-lcygwin" or "-lc" on a linker command line.

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