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]

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/


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