From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2509 invoked by alias); 12 Dec 2001 22:01:06 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 2466 invoked from network); 12 Dec 2001 22:01:02 -0000 Received: from unknown (HELO wilber.adroit.com) (192.232.25.2) by sources.redhat.com with SMTP; 12 Dec 2001 22:01:02 -0000 Received: by wilber.adroit.com with Internet Mail Service (5.5.2650.21) id ; Wed, 12 Dec 2001 17:00:57 -0500 Message-ID: <80575AFA5F0DD31197CE00805F650D767B20FB@wilber.adroit.com> From: "Robinow, David" To: cygwin@cygwin.com Subject: RE: gcc -mno-cygwin creates cygwin executables! Date: Wed, 12 Dec 2001 14:31:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2001-12/txt/msg00663.txt.bz2 I must say I'm baffled by this whole thread (NPI) Why are you using such a lame program. Just add #include to zz.c and everything should work as intended, no? If you don't do that it seems you get what you deserve. Am I missing something? -----Original Message----- From: Teun Burgers [mailto:a.rburgers@freeler.nl] Sent: Wednesday, December 12, 2001 2:51 PM To: cygwin@cygwin.com Cc: Robert Collins Subject: Re: gcc -mno-cygwin creates cygwin executables! To sum up this thread: consider the following program: main () { pthread_create(); } gcc -mno-cygwin -o zz.exe zz.c -lpthread will compile and build. A cygcheck on zz.exe reveals that libcygwin.a is linked in. The problem with this is that a configure script with CC='gcc -mno-cygwin' will incorrectly find that libpthread.a is available with AC_SEARCH_LIBS(pthread_create, -lpthread) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/