LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 07: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, 08: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, 09: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, 09: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, 09: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



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 06:33 PM
Where is make.conf? rjkfsm Debian 7 07-09-2005 09:48 AM
Make.conf? Kenji Miyamoto Slackware 4 05-26-2005 06:58 PM
make.conf in gentoo d1l2w3 Linux - Software 2 12-21-2004 04:42 PM
Gentoo /etc/make.conf jiggywiggy Linux - Newbie 4 02-07-2004 02:47 PM

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

All times are GMT -5. The time now is 09:17 AM.

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