delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/08/27/19:03:22

To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: gcc environment variables
Date: Thu, 27 Aug 92 15:27:17 PDT
From: Jonathan Ryshpan <jon AT halsp DOT hitachi DOT com>

>>Is it possible to set the gcc configuration via a data file rather
>>than environment variables.  You could place it in the same directory
>>...
>Since FSF writes gcc, and they use Unix, I doubt they would be willing
>to make this change.  However, you can increase the amount of
>environment space with config.sys.
>
>You could always recompile gcc so that the defaults match your
>directory structure (I think the default is /usr/local/lib/something).

(1) I think this environment control file is a good idea.  But:

(2) DJ doesn't want to do it.  He has enough to do without putting every
    improvement into gcc that's suggested.  I don't want to do it right
    now either.  Nevertheless:

(3) Gcc is provided in source form and can compile itself, so you can
    change it yourself.

    It wouldn't be hard to do what you want.  Gcc reads all environment
    information via a single routine, getenv(), which is part of the
    standard C library.  You simply need to write a special version of
    this which reads the needed environment info from the actual
    environmenf or the .CFG file as desired.

    I recommend that there be a single environment variable (DJGCC ?) to 
    specify the location of the .CFG file.

    All this could posted to the group as a patch.

Good Luck: (Please pardon small flames (8-)).

Jonathan Ryshpan		<...!uunet!hitachi!jon>

===============> I write for myself ONLY. <===============

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019