Gentoo Archives: gentoo-user

From: Patric Schmitz <bzk0711@×××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] make.conf
Date: Fri, 17 Oct 2008 18:37:40
Message-Id: 20081017203727.76cb0770@silencio.saunaklub
In Reply to: [gentoo-user] make.conf by ann kok
1 On Fri, 17 Oct 2008 11:11:21 -0700 (PDT)
2 ann kok <annkok2001@×××××.com> wrote:
3
4 > hi all
5
6 Hello,
7
8 > why we have to put the following flags in the make.conf
9 >
10 > what are the purpose?
11 >
12 > CFLAGS="-O2 -pipe"
13 > CXXFLAGS="-O2 -pipe"
14 > CHOST="x86_64-pc-linux-gnu"
15
16 These are parameters for the gcc compiler. On a Gentoo system, you
17 compile all (or most of) your software from source, instead of simply
18 installing a precompiled binary package, as in most other distributions.
19
20 These parameters influence the compiler, the software which actually
21 builds the program from the source code. Their exact meaning is
22 documented in gcc's manual page (man gcc).
23
24 -O2 instructs the compiler to perform second level optimizations on the
25 code (note 'O', not '0').
26 -pipe tells gcc to use unix pipes for communication during the compile
27 process, which might speed up things.
28
29 CFLAGS specifies the options when compiling a C source file, CXXFLAGS
30 is for C++ files.
31
32 CHOST specifies your machine architecture and operating system type.
33 This stems from the GNU config package which is used by the
34 automake/autoconf build system which is used for most software.
35 According to config.sub from autoconf, the format of this target
36 specification is:
37
38 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
39 # or in some cases, the newer four-part form:
40 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
41
42 Cheers,
43 Patric