delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/17/10:03:36

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 17 Feb 2003 10:09:24 +0000 (GMT Standard Time)
From: Max Bowsher <maxb AT ukf DOT net>
To: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: [avail for test] libtool-devel-20030121-1
In-Reply-To: <3E507D00.9040305@ece.gatech.edu>
Message-ID: <Pine.WNT.4.44.0302171007540.996-100000@pcchem101.chem.pwf.cam.ac.uk>
X-X-Sender: mob22 AT imap DOT hermes DOT cam DOT ac DOT uk
MIME-Version: 1.0

On Mon, 17 Feb 2003, Charles Wilson wrote:

> Max Bowsher wrote:
>
> >
> > Neither will work. The compiler is already perfectly happy. libtool decides
> > it knows better, though, and intervenes, breaking the build. I wouldn't
> > worry too much about this now. There's already a hardcoded
> > sys_lib_search_path_spec for cygwin. It only affects building for mingw in a
> > cygwin environment.
>
> -mno-cygwin, in other words.  So "native" (e.g. MSYS) mingw builds are
> not affected by this?

I wouldn't know. I'm too happy with the Cygwin environment to bother
trying!

> > About the only solution I can think of is to test $CC for -mno-cygwin, and
> > use the cygwin sys_lib_search_path_spec if found.
>
> That's not so bad. Although, it should NOT use cygwin's
> sys_lib_search_path_spec -- you'd pull in all of the cygwin-dependent
> libz's and libncurses's.  What you want is to ADD /usr/lib/w32api to the
> "standard" 'gcc -mno-cygwin' search path.  That "standard" path already
> includes the right gcc runtime directory, and already includes
> /usr/lib/mingw via some symlinks.  You just need to add
> -L/usr/lib/w32api -- we know that nothing in there is cygwin-dependent.
>
> I believe there are a few checks for -mno-cygwin already sprinkled
> around in the code.  Wanna submit a patch as outlined above?

Why not? As soon as I have some free time :-)
(Maybe in a couple of weeks or so)


Max.



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