Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 4 May 2005 13:41:25 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Using -mno-cygwin flag
Message-ID: <20050504174125.GW24661@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <20050504171940.GU24661@trixie.casa.cgf.cx> <SERRANOIv6EybqfAj8100000207@SERRANO.CAM.ARTIMI.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <SERRANOIv6EybqfAj8100000207@SERRANO.CAM.ARTIMI.COM>
User-Agent: Mutt/1.5.8i

On Wed, May 04, 2005 at 06:34:46PM +0100, Dave Korn wrote:
>----Original Message----
>>From: Christopher Faylor
>>Sent: 04 May 2005 18:20
>
>
>> as to ignore correctly installed libraries.  You just have to put the
>> libraries and headers in locations that are searched when -mno-cygwin
>> is used.  Those locations are distinct from the locations used when
>> -mno-cygwin is not provided -- for frighteningly obvious reasons.
>> 
>> "/usr/i686-pc-mingw32/include" and "/usr/i686-pc-mingw32/lib" would be
>> the place to put the headers/libraries.
>> 
>> /usr/include/mingw is also searched for the header files.  I don't
>> remember if /usr/local/lib/mingw is searched for library files.
>
>.... but anyone can easily find out for themselves, using the command "gcc
>-mno-cygwin -print-search-dirs"  (and for interest's sake, compare it to the
>output you get without -mno-cygwin).
>
>  Hm.  Why should "gcc -mno-cygwin" be looking in /lib and /usr/lib, where
>it's only likely to find cygwin libraries?  That looks a bit wrong to me....

Not only is it wrong, it has been mentioned as a problem here before.

cgf

--
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/

