From owner-freebsd-ports Wed Jan 21 07:37:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA03875 for freebsd-ports-outgoing; Wed, 21 Jan 1998 07:37:02 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from helios.dnttm.ru (root@dnttm.wave.ras.ru [194.85.104.197]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA03843 for ; Wed, 21 Jan 1998 07:36:35 -0800 (PST) (envelope-from dima@tejblum.dnttm.rssi.ru) Received: (from uucp@localhost) by helios.dnttm.ru (8.8.5/8.8.5/IP-3) with UUCP id SAA31183; Wed, 21 Jan 1998 18:26:43 +0300 Received: from tejblum.dnttm.rssi.ru (localhost [127.0.0.1]) by tejblum.dnttm.rssi.ru (8.8.8/8.8.7) with ESMTP id SAA01227; Wed, 21 Jan 1998 18:28:37 +0300 (MSK) (envelope-from dima@tejblum.dnttm.rssi.ru) Message-Id: <199801211528.SAA01227@tejblum.dnttm.rssi.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: asami@cs.berkeley.edu (Satoshi Asami) cc: Nakai@Mlab.t.u-tokyo.ac.jp, ports@FreeBSD.ORG, bde@zeta.org.au Subject: Re: x11/explorer build failure In-reply-to: Your message of "Tue, 20 Jan 1998 17:08:50 PST." <199801210108.RAA19839@baloon.mimi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 Jan 1998 18:28:37 +0300 From: Dmitrij Tejblum Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Satoshi Asami wrote: > The problem is the libraries though. I don't think people specify > -L/usr/local/lib to get standard system libraries from there instead > of /usr/lib. Maybe this could be fixed in /usr/bin/c*, say by having > libc and libstdc always being searched in /usr/lib first? What cc or c++ can do? They simple pass -lc or -lc -lstdc++ or whatever even more complex to the linker. It is area of ld(1) to search for libraries. May be, ld should search in /usr/lib first? Unlikely. And then egcs will unable to find its own libstdc++. > Or of course we can move libstdc.a from egcs to a subdirectory. How > does egcs find it anyway, does it link with an implicit > -L/usr/local/lib or will it pick up the one in /usr/lib if the user > doesn't specify any -L flags? > Apparently, it link with an implicit -L/usr/local/lib. And this path is hardcoded somewhere (in specs?). (Long long time ago I upgraded my 2.2-960801-SNAP with locally installed gcc 2.7.2.1 to 2.2 GAMMA with shipped gcc 2.7.2.1 and found all my Makefiles broken --- they didn't mentioned -L/usr/local/lib :) EGCS people suggest that egcs should be configured with --prefix=/usr/local/egcs, and after install user make symlinks /usr/local/bin/egcs-gcc -> /usr/local/egcs/bin/gcc, and so on. This way one can easy install both egcs and gcc-2.8 from FSF, for example. GCC 2.8 is in ports too, so it may be really good idea. And without hackering with their build system. Dima