From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29638 invoked by alias); 30 Sep 2003 17:51:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29608 invoked from network); 30 Sep 2003 17:51:22 -0000 Received: from unknown (HELO redhat.com) (66.187.230.200) by sources.redhat.com with SMTP; 30 Sep 2003 17:51:22 -0000 Received: by redhat.com (Postfix, from userid 201) id 1502432A8A7; Tue, 30 Sep 2003 13:51:22 -0400 (EDT) Date: Tue, 30 Sep 2003 18:44:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: gcc-3.2: gcc driver doesn't pick up crt0.a from /usr/lib Message-ID: <20030930175122.GB30878@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <3F79C1DF.4040608@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F79C1DF.4040608@mvista.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-09/txt/msg01855.txt.bz2 On Tue, Sep 30, 2003 at 10:48:15AM -0700, Doru Carastan wrote: >This is a followup to my "gcc-3.2: gcc driver doesn't pick up crt0.a >from /usr/lib" message. > >I have found that configure sets GCC_FOR_TARGET to the cross-compiler I >use in the root Makefile. > >GCC_FOR_TARGET = i686-pc-cygwin-gcc > >Then gcc/Makefile is using it to create the spec file > >specs: xgcc$(exeext) > $(GCC_FOR_TARGET) -dumpspecs > tmp-specs > mv tmp-specs specs > >and obviously the spec file defines: > >*cross_compile: >1 > >which makes gcc drop /lib and /usr/lib from the 'libraries:' search path. > >IMO this is wrong considering that the configure line was: > >"$r/src/$gcc/configure" --build=i686-pc-linux-gnu \ > --host=i686-pc-cygwin --target=i686-pc-cygwin \ > --prefix=/usr --includedir=/nonexistent/include \ > --enable-languages=c,c++ \ > --enable-threads=posix \ > --with-system-zlib \ > --enable-nls \ > --without-included-gettext \ > --disable-version-specific-runtime-libs \ > --enable-shared \ > --enable-haifa \ > --enable-interpreter > >Can someone shed some light here? Why GCC_FOR_TARGET is not left as >defined in the gcc/Makefile? > >GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem >$(build_tooldir)/include -isystem $(build_tooldir)/sys-include The gcc mailing list is a more appropriate place for these types of questions. gcc at gcc dot gnu dot org. -- Please use the resources at cygwin.com rather than sending personal email. Special for spam email harvesters: send email to aaaspam@sourceware.org and be permanently blocked from mailing lists at sources.redhat.com -- 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/