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: Slight gcc -mno-cygwin inconsistency


Thomas wrote:

> Hi all,
> no idea if this really belongs here or on the MinGW list:

> gcc searches

> #include <...> search starts here:
>  /usr/local/include
>  /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include
>  /usr/include
>  /usr/include/w32api

> whereas gcc -mno-cygwin searches in

> #include <...> search starts here:
>  /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include
>  /usr/i686-pc-mingw32/include
>  /usr/include/w32api

> It would be convinient if gcc searched /usr/local/include in both
> cases, mostly supporting my lazyness in 
> CC='gcc -mno-cygwin' ./configure; make cycles.


You won't use cygwin headers in /usr/local/include when using -mno-cygwin.
Want you?  It will search /usr/local/include/mingw iff it is there.

Actually the search list is much longer:

GNU C version 3.3.1 (cygming special) (i686-pc-cygwin)
        compiled by GNU C version 3.3.1 (cygming special).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32708
ignoring nonexistent directory "/usr/local/include/mingw"
ignoring duplicate directory "/usr/include/mingw"
ignoring duplicate directory "/usr/i686-pc-mingw32/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include
 /usr/i686-pc-mingw32/include
 /usr/include/w32api
End of search list.

Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]