This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: gcc -mno-cygwin creates cygwin executables!


 I must say I'm baffled by this whole thread (NPI)
Why are you using such a lame program.
 Just add
  #include <pthread.h>
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]