From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4925 invoked by alias); 15 Mar 2008 10:20:59 -0000 Received: (qmail 4812 invoked by alias); 15 Mar 2008 10:20:19 -0000 Date: Sat, 15 Mar 2008 10:20:00 -0000 Message-ID: <20080315102019.4811.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/35577] configure: error: cannot compute suffix of object files In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "brian at dessent dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg01276.txt.bz2 ------- Comment #6 from brian at dessent dot net 2008-03-15 10:20 ------- Subject: Re: configure: error: cannot compute suffix of object files al dot danial at gmail dot com wrote: > Indeed, adding the MPFR and GPM lib directories to LD_LIBRARY_PATH solves the > problem. For some reason I thought configure would handle this for me since I It's the same case when installing any shared library on the system -- you have to inform the dynamic linker of their location (or put them somewhere it already knows to search) otherwise programs that use that library can't run. Configure doesn't really know how you want to handle this: adding a path to LD_LIBRARY_PATH is but one way; you could also add the path to ld.so.conf, or relink the libraries with the path hardcoded (RPATH). It wouldn't be very prudent to have configure assume that it should be adding things to LD_LIBRARY_PATH. The reason the configure checks succeeded is they are checking for compile time and link time behavior, i.e. they are exercising the link editor (ld) not the dynamic linker (ld.so). I suppose it would be possible for configure to try an additional execute check for sanity if it's not crosscompiling. But the best you could do there is report a problem, as again fixing it is outside of the realm of configure. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35577