From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FkxWh-0005Kj-1V for garchives@archives.gentoo.org; Tue, 30 May 2006 06:16:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k4U6Dr9A018658; Tue, 30 May 2006 06:13:53 GMT Received: from cicero1.cybercity.dk (cicero1.cybercity.dk [212.242.40.4]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k4U64tVN001361 for ; Tue, 30 May 2006 06:04:55 GMT Received: from user2.cybercity.dk (user2.cybercity.dk [212.242.41.35]) by cicero1.cybercity.dk (Postfix) with ESMTP id 0674B63EF8B for ; Tue, 30 May 2006 08:04:54 +0200 (CEST) Received: from [10.0.0.3] (port78.ds1-abs.adsl.cybercity.dk [212.242.227.17]) by user2.cybercity.dk (Postfix) with ESMTP id CCE2C28670C for ; Tue, 30 May 2006 08:04:54 +0200 (CEST) From: Bo =?iso-8859-1?q?=D8rsted_Andresen?= To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OpenOffice build failed. Date: Tue, 30 May 2006 08:04:59 +0200 User-Agent: KMail/1.9.1 References: <7573e9640605282217h447d62a4ldca7659c75571efc@mail.gmail.com> <1148940992.9761.59.camel@sputnik886.ruz-net> <87u0789iiy.fsf@newton.gmurray.org.uk> In-Reply-To: <87u0789iiy.fsf@newton.gmurray.org.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1154270.C5IN64eVNY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200605300805.02688.bo.andresen@zlin.dk> X-Archives-Salt: 6dc58f59-cf57-4bcb-84d9-00f836c4dbbb X-Archives-Hash: cc70cc68345a5e9f3ca595cf38e2659f --nextPart1154270.C5IN64eVNY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Tuesday 30 May 2006 07:41 skrev Graham Murray: > > Besides, by looking at the terminal while merging packages, you will > > soon notice, that lot's of packages add their very own CFLAGS to your > > default ones. For example mplayer or xine-lib was compiled with '-O3' on > > my system, allthough i have '-O2' in my CFLAGS. (As far as i know, "gcc > > -O3 -O2" =3D=3D "gcc -O3"). > > Where packages do this, should they not filter out the appropriate > flags from the user's CFLAGS and substitute their flags rather than > having both flags on the command line? Not in this particular case. xine-lib is a good example. src_compile()=20 contains the following in the ebuild (and more): if [[ $(tc-arch) =3D=3D "x86" ]]; then filter-flags -fforce-addr filter-flags -momit-leaf-frame-pointer is-flag -O? || append-flags -O2 fi On an x86 architecture it filters out -fforce-addr=20 and -momit-leaf-frame-pointer. If the CFLAGS contain any optimizations it=20 just appends -O2 yielding that -O2 will be used as stated by Christian=20 Limberg. In 'man gcc' you find the following statement: "If you use multiple -O options, with or without level numbers, the last su= ch=20 option is the one that is effective." So this is completely legal. And I very much doubt that there are any ebuilds in the portage tree that=20 enforces -O3 or higher... =2D-=20 Bo Andresen --nextPart1154270.C5IN64eVNY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEe+CO8/kKEzmwNNoRArumAJ4nPSdAC28KmMQ2AAKpHiHxtn+ikwCfQ/VW UnKOdIe5/zAhxLMD/kj8c5Y= =MtYo -----END PGP SIGNATURE----- --nextPart1154270.C5IN64eVNY-- -- gentoo-user@gentoo.org mailing list