LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2003, 08:57 PM   #1
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
make.conf ?


can i just add a make.conf file to mandrake? i don't have one now. i would like to have it reconize my cpu and compile accordingly.

is this possible? does mandrake have something like it?

thanks.
 
Old 02-14-2003, 09:46 PM   #2
crichards
Member
 
Registered: Feb 2003
Location: Arizona
Distribution: Gentoo!
Posts: 124

Rep: Reputation: 15
make.conf is a Gentoo specific thing. You'll want to set the following variables:

CFLAGS='-march=processor-type -O2 -pipe -funroll-loops...'
CXXFLAGS=$CFLAGS

Anything you then compile will use those settings. Add this to your .bash_profile, and then add the line:

export CFLAGS
export CXXFLAGS
 
Old 02-14-2003, 10:13 PM   #3
emetib
Member
 
Registered: Feb 2003
Posts: 484

Original Poster
Rep: Reputation: 33
so what is funroll loops?

am i going to be flying circles around people?

in the gentoo docs it says like "march -athlon-xp ...." is that the format that i should follow. or use the fun loops?

seriously though. do i want both of the first lines in the .bash_profile also?

CFLAGS='-march=processor-type -O2 -pipe -funroll-loops...'
CXXFLAGS=$CFLAGS

along with these

export CFLAGS
export CXXFLAGS

thanks.
 
Old 02-14-2003, 10:23 PM   #4
crichards
Member
 
Registered: Feb 2003
Location: Arizona
Distribution: Gentoo!
Posts: 124

Rep: Reputation: 15
The CFLAGS='...' is all of your optimizations.

Mine looks like '-march=athlon-tbird -O2 -pipe -funroll-loops'

The second line is for the C++ compiler to use. You can have different optimizations for each compiler.

PS: -funroll-loops is another optimization. I'm looking for this guide I found, but can't find anymore...
 
Old 02-14-2003, 10:28 PM   #5
emetib
Member
 
Registered: Feb 2003
Posts: 484

Original Poster
Rep: Reputation: 33
well i think that i'm going to give gentoo another shot. the first couple didn't go real well. i think it was mostly that i was tired, so i was getting frustrated easily.

thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo make & make.conf & emerge Trouble geagon Linux - Newbie 5 10-28-2005 07:33 PM
Where is make.conf? rjkfsm Debian 7 07-09-2005 10:48 AM
Make.conf? Kenji Miyamoto Slackware 4 05-26-2005 07:58 PM
make.conf in gentoo d1l2w3 Linux - Software 2 12-21-2004 05:42 PM
Gentoo /etc/make.conf jiggywiggy Linux - Newbie 4 02-07-2004 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration