Gentoo Archives: gentoo-user-pl

From: "Mariusz Pękala" <skoot@××.pl>
To: gentoo-user-pl@l.g.o
Subject: Re: [gentoo-user-pl] flaga OX
Date: Mon, 07 Nov 2005 08:53:34
Message-Id: 20051107085258.GA25210@lisa.tutaj
In Reply to: [gentoo-user-pl] flaga OX by Matt Z
1 On 2005-11-06 14:36:25 +0100 (Sun, Nov), Matt Z wrote:
2 > jak to jest z flaga OX?
3 > W pliku /etc/make.conf mam wpisane CFLAGS="-O3 -march=i686 -pipe"
4 >
5 > natomiast podczas kompilacji wielu programw widze cos takiego:
6 > gcc -D_REENTRANT -I../common -I../common -DHAVE_CONFIG_H -O -O2
7 > -march=i686 -pipe -c -DPIC -fPIC -o
8 >
9 > dlaczego O3 nie jest uzywane?
10
11 Wiele ebuildów filtruje flagi, wiedząc że niektóre kombinacje powodują
12 problemy w danym pakiecie.
13
14 Zobacz np. /usr/portage/app-office/openoffice/openoffice-1.1.5.ebuild
15 linia 389:
16
17 # Compile problems with these ...
18 filter-flags "-funroll-loops"
19 filter-flags "-fomit-frame-pointer"
20 filter-flags "-fprefetch-loop-arrays"
21 filter-flags "-fno-default-inline"
22 filter-flags "-fstack-protector"
23 filter-flags "-ftracer"
24 append-flags "-fno-strict-aliasing"
25 replace-flags "-O3" "-O2"
26 replace-flags "-Os" "-O2"
27
28 if [ "$(gcc-version)" == "3.2" ]; then
29 einfo "You use a buggy gcc, so replacing -march=pentium4 with -march=pentium3"
30 replace-flags "-march=pentium4" "-march=pentium3 -mcpu=pentium4"
31 fi
32
33 .. i tak dalej.
34
35 --
36 No virus found in this outgoing message.
37 Checked by 'grep -i virus $MESSAGE'
38 Trust me.

Replies

Subject Author
Re: [gentoo-user-pl] flaga OX Matt Z <matt_z@××.pl>