From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20130 invoked by alias); 11 Dec 2001 17:47:34 -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 19658 invoked from network); 11 Dec 2001 17:46:07 -0000 Received: from unknown (HELO porgy.srv.nld.sonera.net) (195.66.15.137) by sources.redhat.com with SMTP; 11 Dec 2001 17:46:07 -0000 Received: from qn-213-73-163-94.quicknet.nl ([213.73.163.94]:2934 "EHLO freeler.nl") by soneramail.nl with ESMTP id ; Tue, 11 Dec 2001 18:45:46 +0100 Message-ID: <3C16469D.B2B4B26B@freeler.nl> Date: Tue, 11 Dec 2001 09:48:00 -0000 From: Teun Burgers X-Mailer: Mozilla 4.78 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin@cygwin.com Subject: gcc -mno-cygwin creates cygwin executables! Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00594.txt.bz2 Consider the following 3 line program: main () { pthread_create(); } This compiles and links with gcc -mno-cygwin -o zz zz.c -lpthread It should not link since this is part of a configure test for threads AC_SEARCH_LIBS(pthread_create, -lpthread) that should fail with CC='gcc -mno-cygwin' There are 2 problems here: 1) gcc -mno-cygwin searches for libs in /usr/lib. Should it? 2) libpthread.a is link to libcygwin.a. If the thread routines were in a separate library the link would still fail as it should. Teun Burgers -- 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/