Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <032201c2d141$4c333920$78d96f83@pomello>
From: "Max Bowsher" <maxb@ukf.net>
To: <cygwin@cygwin.com>
References: <000001c2d13b$d5c30a40$5c1306d5@BRAMSCHE> <02ee01c2d13f$506fbc40$78d96f83@pomello> <20030210200715.GE11550@redhat.com>
Subject: Re: [avail for test] libtool-devel-20030121-1
Date: Mon, 10 Feb 2003 20:16:29 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Christopher Faylor wrote:
> gcc doesn't search /usr/lib/w32api.  ld does.  Since it's impossible
> for ld to *not* search /usr/lib/w32api, I don't know why this is an issue
> unless you've got a mismatch between gcc and ld.

It's an issue when cross-compiling cygwin -> mingw, using -mno-cygwin, since
libtool runs gcc -print-search-dirs, doesn't see /usr/lib/w32api there, so
when you try to link with a w32api library, libtool petulantly refuses to
link properly, because *it* thinks the w32api library won't be found.
Whereas, if it just trusted gcc/ld to do their jobs, there would be no
problem.

It's only not an issue when compiling cygwin -> cygwin because
sys_lib_search_path_spec is hardcoded in libtool for this case.


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/

