Date: Wed, 31 Jan 2001 11:13:04 +0200 (WET) From: Andris Pavenis To: Eli Zaretskii Cc: Laurynas Biveinis , djgpp-workers AT delorie DOT com Subject: Re: Path defaults in GCC In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 31 Jan 2001, Eli Zaretskii wrote: > > On Tue, 30 Jan 2001, Laurynas Biveinis wrote: > > > Today I just discovered that GCC 2.97 does not > > search for libraries in /dev/env/DJDIR/lib directory, > > and that seems a showstopper to me. The fix for GCC is pretty > > trivial (see below; I've made some rearrangements too). > > However, this should have came up much earlier, so I might > > be missing something very obvious here. > > Didn't GCC have some special code to expand $DJDIR at runtime, written > by Robert Hoehne when /dev/env didn't exist yet? > > As for the changes, please make sure they don't break the cross-build > environment, both when building GCC as a native or cross-compiler, and > when using it later on a Unix box. It was used in gcc-2.95.X but it's nightmare to get all makefiles and configure to operate normally when one has to get $DJDIR through without expansion. When You're building for example Linux to DJGPP cross-compiler You are giving Linux specific prefix like /usr or /usr/local so this all doesn't matter. For Canadian cross builds (like building native compiler for DJGPP or DJGPP hosted cross-compiler under Linux) one can safely specify in prefix /dev/env/DJDIR and nothing should break. For example I'm specifying /dev/env/DJDIR as prefix when I'm building native binutils for DJGPP under Linux. Andris