delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/11/13:05:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C16469D.B2B4B26B@freeler.nl>
Date: Tue, 11 Dec 2001 18:47:09 +0100
From: Teun Burgers <a DOT rburgers AT freeler DOT nl>
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: gcc -mno-cygwin creates cygwin executables!

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019