avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Installing WinAVR 20070122 broke older 3.4.5install?


From: Albert Andras
Subject: Re: [avr-gcc-list] Installing WinAVR 20070122 broke older 3.4.5install?
Date: Sat, 3 Feb 2007 15:02:04 +0200

----- Original Message ----- From: "Eric Weddington" <address@hidden> To: "'Joerg Wunsch'" <address@hidden>; <address@hidden>
It's a bit counterintuitive that GCC prefers the Windows registry key
over an environment variable.  In Unix, environment variables have
usually been used to override defaults, but that would no longer be
possible once the registry key in place.  If you don't like that,
please file a bug report with the GCC (and binutils) folks.  I don't
know what's the reasoning for this.

This can be disabled at build time.

From http://gcc.gnu.org/install/configure.html
--enable-win32-registry
--enable-win32-registry=key
--disable-win32-registry
The --enable-win32-registry option enables Microsoft Windows-hosted GCC to look up installations paths in the registry using the following key:

Andras

It's only counterintuitive because your used to Unix. On Unix, environment
variables are the norm. In the old DOS days they were the norm on DOS. In
moving to Windows, and especially now, like it or not, MS moved to this
"registry" idea as a way to centrally locate all these .ini files they used to have. There are still enviornment variables on Windows, it's just they're
so far buried down it's hard to get to. MS "encapsulated" the environment
variables in the registry. Note that it doesn't mean that I like the system.


The only simple solution I could think of Eric might implement is to
ask the user/administrator at installation time, whether the registry
keys should be brought into place, or whether the user would rather
like to handle that on their own, using environment variables.

I agree though, system-wide environment variables are completely
unsuited as the name of the variable being looked up is always one of
GCC_ROOT, BINUTILS_ROOT, etc -- independent of whether this is a
cross-compiler or not.

Right.

At least with the registry there can be keys that are specific
distro+version. Up until now I haven't put the version on there.

Eric



_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

!DSPAM:45c385ef278801393315152!







reply via email to

[Prev in Thread] Current Thread [Next in Thread]