Or, you could just 'export CFLAGS="O3 -march=i686 -mcpu=i686" and then
'CXXFLAGS=$CFLAGS' in your /etc/profile.  Then, each configure script
you run will check /etc/profile for the flags.

-R
-- 
Rohan Deshpande
[EMAIL PROTECTED]

* Thomas J. Hamman ([EMAIL PROTECTED]) wrote:
> On Tue, Apr 02, 2002 at 11:44:15AM +0100, Patrick Kirk wrote:
> > Hi all,
> > 
> > Gentoo Linux has this little file called /etc/make.conf that allows
> > you to optimise gcc CFLAGS, etc.  The idea is that when you then
> > compile things, its all set up for your processor and has the max
> > settings to get higher performance.
> [snip] 
> > Where can one out these settings in Debian?
> 
> A non-distribution-specific way to do it is to set a CFLAGS environment
> variable, something like:
> 
> export CFLAGS='-O3 -march=i686'
> 
> You might also want to "export CXXFLAGS=$CFLAGS" for C++ stuff to
> compile with the same optimizations.  And, of course, you might want to
> set those in your ~/.bash_profile or something.
> 
> Of course, replace my example with the actual gcc options you would want
> to use.
> 
> -- 
> Thomas J. Hamman
> "Science without religion is lame, religion without science is blind."
>         -Albert Einstein
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to