From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qaeq2-0005t6-Hu for garchives@archives.gentoo.org; Sun, 26 Jun 2011 02:12:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 031721C100; Sun, 26 Jun 2011 02:05:47 +0000 (UTC) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.29.24]) by pigeon.gentoo.org (Postfix) with ESMTP id 2C5851C08D for ; Sun, 26 Jun 2011 02:04:42 +0000 (UTC) Received: from [85.179.7.97] (helo=[192.168.1.2]) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1QaeiH-0005g0-Ad for gentoo-catalyst@lists.gentoo.org; Sun, 26 Jun 2011 04:04:41 +0200 Message-ID: <4E0693B6.1010304@gentoo.org> Date: Sun, 26 Jun 2011 04:04:38 +0200 From: Sebastian Pipping User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110526 Thunderbird/3.1.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [rfc] Compile flag derivation logic (catalyst 2.x) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Df-Sender: sping-gentoo@binera.de X-Archives-Salt: X-Archives-Hash: c1f5f1ccef80eefca2e413d0f0c72274 Hello! It seems that in order to get your own compile flags applied for a stage3 or stage4 build you need to append a "CFLAGS=" line to /etc/make.conf from within the envscript - quite a dirty workaround not to mention the fact that the envscript is sourced multiple times. This is how final CFLAGS seem to be derived (numbers indicate order so higher numbers win): Targets "stage1, "stage2" 1) key "CFLAGS" subarch defaults 2) key "CFLAGS" earlier /etc/make.conf 3) key "cflags" conf file 4) key "cflags" spec file Targets "stage3", "stage4", "generic_stage" 1) key "CFLAGS" subarch defaults 2) key "CFLAGS" earlier /etc/make.conf That explains why my stage4 "subarch: core2" isn't really changing anything: it gets overriden by the /etc/make.conf from the stage3 I am using. Is that what you are expecting? Is my picture broken - are you experiencing something else with your stage builds? Can you thing of reasons to not allow overriding CFLAGS and friends for stage3 and stage4 builds? Best, Sebastian