This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Interpolation of Env variables.



  In message <36F97B8C.658E44A9@interix.com>you write:
  > This is a multi-part message in MIME format.
  > --------------365F85ABC4D69EEB2E14C7BC
  > Content-Type: text/plain; charset=us-ascii
  > Content-Transfer-Encoding: 7bit
  > 
  > - gcc.c: The ability to interpolate an environment variable into
  >   specs is useful (e.g. CFLAGS), and in the case of the current
  >   Interix, necessary, as the path to the current root is
  >   installation-defined (also applicable to some other systems, e.g.
  >   windows).  This adds the ability to interpolate an environment
  >   variable in a spec.
Actually, sucking stuff like this out of the environment is, IMHO, bad.
See the recent discussion around GCC_DEFAULT_OPTIONS.

It also seems to me that all you're trying to accomplish is install location
independence.  If you look at the egcs-1.2 webpage you'll see a blurb about
this :-)  It's something Cygnus has already written and wants to contribute
when someone has the time to extract the remaining changes.  It's something I
want to have installed and operational for egcs-1.2.

I believe Mumit's Windows releases (for example) have the remaining bits from
the Cygnus tree and use them to achieve location independence.

It's totally silly for people to have to set environment variables, use -B
arguments or recompile just because they moved the toolchain from one directory
to another.


jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]