Click to See Complete Forum and Search --> : help, in gentoo, what are chost, how I set the values?


panther
02-13-2003, 09:47 AM
i am doing the gentoo installation and i am following the installation guide but i stacked in this paragraph........how i set values.........have a look at my hardware.and please help me...




Now that you have a working copy of the Portage tree, people using stage1 to install will need to bootstrap their Gentoo Linux system as follows. First edit the file /etc/make.conf. In this file, you should set your USE flags, which specify optional functionality that you would like to be built into packages; generally, the defaults (an empty or unset USE variable) are fine. More information on USE flags can be found here. A complete list of current USE flags can be found here.

You also should set appropriate CHOST, CFLAGS and CXXFLAGS settings for the kind of system that you are creating (commented examples can be found further down in the file.) Your best friend is man gcc to figure out what additional CFLAGS and CXXFLAGS are available. Search for 'Optimization'.

:eek:

je_fro
02-13-2003, 10:05 AM
http://gcc.gnu.org/onlinedocs/gcc-3.2.1/gcc/i386-and-x86-64-Options.html#i386%20and%20x86-64%20Options

Go here and see what to put in order to optimize for your processor type...

Hayl
02-13-2003, 10:19 AM
this page is better (well, easier): http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html

panther
02-13-2003, 10:40 AM
do I just type on the text, or should i use the commands from the bottom

Hayl
02-13-2003, 10:49 AM
Originally posted by panther
do I just type on the text, or should i use the commands from the bottom

:confused: what? :confused:

these are the three lines you want to customize in your /etc/make.conf

USE="-arts -cups -kde -qt -apm opengl java alsa bonobo cdr dvd mozilla perl tiffm gnome gtk avi X truetype xmms mpeg pam jpeg gif"

CHOST="i686-pc-linux-gnu"

CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"

the rest of the file can be left alone (for now).

panther
02-13-2003, 10:52 AM
ok , but how i save and exit?:D

Hayl
02-13-2003, 10:58 AM
btw, those values are for my system, so don't copy them unless you have a pentium 4 and you like the use flags i have (i.e. you don't use KDE) :)

if you are using vi to edit /etc/make.conf then it is:

:wq

if you are using nano then it is:

ctrl-o
<enter>
ctrl-x

panther
02-14-2003, 12:45 PM
0 O