[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] EXTRA_CFLAGS when compiling Xen

  • To: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Corneliu ZUZU <czuzu@xxxxxxxxxxxxxxx>
  • Date: Wed, 17 Feb 2016 12:34:54 +0200
  • Cc: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxx>, Ian Campbell <ian.campbell@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Wed, 17 Feb 2016 10:35:01 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=ZxwMlPLUVNfKrUMx00/6JIDIOFnoADBVs+GGH88XXYiODkJskwWelOF/RbcK+1L04DAPSyLMfM9Zb96XDb0P8ggsBoYaWaXaNQ7v4xKTkKTB4pxM+6qPxKFQmozzciTRieAVumcxFyKcvj2aKLfD0L21aVZsuuQUoXtA/UKmZ/DshdTsw+7FnjsCgQJ+7xojodiLyB7jYuPNL4yodYa/YFA/O2WWefstKv+vEDv8dY0wt3bkGzHTK8kt/POa3/rdvOuDq12VVqqFBGl05l3eswzU/rL39GLMpzbmHnXEkbZexIHYvjktIZxU/q8fEy4mO/bnKyouy/HKQVQiHmBo4Q==; h=Received:Received:Received:Received:Received:Subject:To:References:Cc:From:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 2/17/2016 12:23 PM, Razvan Cojocaru wrote:
Could anyone tell me if and how I could pass some GCC extra compilation
flags when building Xen (i.e. make dist-xen)?
I tried:
* when running make: passing EXTRA_CFLAGS
* when running make: passing CFLAGS (this "works" but overrides the rest
of the CFLAGS)
* when running ./configure: passing --extra-cflags.
None works.

Is there an established modality for this or must I manually modify the
The reason I need this is to pass '-save-temps' to GCC, I want to
inspect some code
and it would be easier to do that on the preprocessed files.
Does editing Config.mk not work?

I was wondering also if there is a "proper" way to do that, but that easily does the job, thanks.

For whoever else needs this, I simply added CFLAGS += -save-temps=obj in Config.mk (see similar "CFLAGS +=" lines).


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.