Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: BUG gcc-mingw 20040810-1 library search path Date: Fri, 3 Sep 2004 19:25:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <643109725.20040903170802@familiehaase.de> Message-ID: X-OriginalArrivalTime: 03 Sep 2004 18:25:34.0906 (UTC) FILETIME=[673FE1A0:01C491E3] > -----Original Message----- > From: cygwin-owner On Behalf Of Gerrit P. Haase > Sent: 03 September 2004 16:08 > To: Igor Pechtchanski > Hallo Igor, I'm not Igor! Heh, PMFBI! > > On Mon, 30 Aug 2004, Gerrit P. Haase wrote: > >> >> This is in binutils/ld/configure.tgt: > >> >> i[3-7]86-*-cygwin*) targ_emul=i386pe ; > >> >> targ_extra_ofiles="deffilep.o pe-dll.o" > >> >> test "$targ" != "$host" && > >> >> LIB_PATH='${tooldir}/lib/w32api' ;; > >> >> > >> >> where tooldir should be /usr/i686-pc-mingw32 in this > case and you need > >> >> to have the symlinks installed in /usr/i686-pc-mingw32: > >> >> 21 Nov 1 2003 bin -> ../i686-pc-cygwin/bin > >> >> 16 Nov 1 2003 include -> ../include/mingw > >> >> 12 Nov 1 2003 lib -> ../lib/mingw > > The whole point was that there is stated in binutils ld config > LIB_PATH='${tooldir}/lib/w32api' > ${tooldir}/lib/w32api it is the same as saying > /usr/i686-pc-mingw32/../lib/mingw/w32api which doesn't resolve and I > wonder how this works. Gerrit, the default search path for ld is passed down from the gcc driver, not compiled into ld. I think this LIB_PATH setting is maybe just used on the build machine, at the time when compiling a cross-binutils (hence the test "$targ" != "$host") targetted at mingw, perhaps? cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/