Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: Problems creating "-mno-cygwin" DLLs with libtool. Date: Tue, 1 Feb 2005 15:56:17 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <030801c50873$a0dd3500$e6ec6f83@robinson.cam.ac.uk> Message-ID: X-OriginalArrivalTime: 01 Feb 2005 15:56:17.0381 (UTC) FILETIME=[90864950:01C50876] > -----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? > mingw-users might be a better forum. Surely this is either a cygwin problem or an autotools problem? (libtool counts as part of autotools, doesn't it?) It's not mingw's fault we've passed bad args to the compiler...... cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/