On Sun, Oct 27, 2002 at 03:45:32PM +1300, cha93 wrote:
> I'm doing a bit of compiling now and then and want to optimize the
> code for my k6-2. I'm using Mdk 9.0 with gcc 3.2 and want to use the
> -march=k6-2 flag for gcc. I'd like this to be added automatically
> when I start the computer to CFLAGS what sort of command
> (CFLAGS="$CLAGS -march=k6-2" ?) would I need to do this and were would
> be the best place to put it? One of the Start up scripts?
``/etc/profile'' is the appropriate place to put global environment
variables.
You should consider why you need to set CFLAGS across all users, though.
Individual users can set the variable in their ``~/.profile'' or
``~/.bash_rc'' (or whatever is appropriate for your shell). There is
little point setting this variable for users that do not have access to
the compiler suite, or never use it. CFLAGS should not need to be set
for root because you should never compile software as root.
-mjg
--
Matthew Gregan |/
/| [EMAIL PROTECTED]