»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-04-2003, 11:32 AM   #1 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
Standard CFLAGS

Is there a way to set GCC and G++ to use a set of CFLAGS by default without having to put them in every time I do a ./configure The sort of thing I want is:
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
Any way to do this? Do I have to set up an alias or something or can I just edit something in /etc / rebuild autoconf/gcc or something?

__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old 04-04-2003, 05:42 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Location: australia
Posts: 444
KraM is on a distinguished road
Just put something like

export CFLAGS="-mcpu=athlon-xp -O3 -pipe"
export CXXFLAGS="$CFLAGS"

in your ~/.bashrc

I would use -Os and -march though

You use Gentoo right? You just add these to /etc/env.d/00basic and run env-update
KraM is offline   Reply With Quote
Old 04-05-2003, 03:07 AM   #3 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
Yeah, thanks. I was just wondering if there was a way to do it for all the stuff I compile outside portage. Thanks.
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 08:45 PM.