1 |
James <wireless@×××××××××××.com> |
2 |
Enviado por: news <news@×××××××××.org> |
3 |
24/01/2008 17:00 |
4 |
Por favor, responda a gentoo-user |
5 |
|
6 |
Para: gentoo-user@l.g.o |
7 |
cc: |
8 |
Asunto: [gentoo-user] Re: firewall make.conf settings |
9 |
|
10 |
<tecnic5 <at> silvanoc.com> writes: |
11 |
|
12 |
>If you'd like to use the same make.conf for different machines you should |
13 |
|
14 |
>make sure they all have same processors or, at least, same family of > |
15 |
>processors; in your case, I recommend using -mcpu instead of -march. Keep |
16 |
|
17 |
>in mind that K6 processors have their own -marc=k6 and might not be |
18 |
>comptable with -march=i586. More in /etc/make.conf.example. |
19 |
|
20 |
|
21 |
Good point: |
22 |
|
23 |
-mcpu is deprecated, according to the examples file as of gcc 3.4, SO: |
24 |
|
25 |
CFLAGS="-Os -march=i586 -pipe -fomit-frame-pointer" |
26 |
CHOST="i586-pc-linux-gnu" |
27 |
|
28 |
changed to: |
29 |
CFLAGS="-Os -mtune=i586 -pipe -fomit-frame-pointer" |
30 |
or |
31 |
CFLAGS="-Os -march=i586 -mtune=i586 -pipe -fomit-frame-pointer" |
32 |
|
33 |
<????? Remember I want one set of binaries for both k6 and old pentiums> |
34 |
|
35 |
|
36 |
|
37 |
|
38 |
-- |
39 |
gentoo-user@l.g.o mailing list |
40 |
|
41 |
|
42 |
You're right, make it -mtune ;-). On the other hand, and according to |
43 |
Gentoo GCC optimization guide[1], both -mtune and -mcpu only take effect |
44 |
if there is no -march available, so I guess the later takes preference |
45 |
over the former. I'd use the first option of CFLAGS, hence. |
46 |
|
47 |
[1] http://www.gentoo.org/doc/en/gcc-optimization.xml#doc_chap2 |
48 |
|
49 |
HTH, |
50 |
Abraham Marín |
51 |
-- |
52 |
gentoo-user@l.g.o mailing list |