WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Inheriting CFLAGS

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Inheriting CFLAGS
From: Jerome Brown <guruswami@xxxxxxxxxxxx>
Date: Tue, 16 Nov 2004 13:01:28 +1300
Delivery-date: Tue, 16 Nov 2004 00:50:18 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <41993E9A.90000@xxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1CTpK2-0004af-00@xxxxxxxxxxxxxxxxx> <41993999.6050903@xxxxxxxxxxxx> <41993E9A.90000@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)
Thats solves the problem (I can tell just looking at it!)

To the xen-devels - is this a fair way to go about it (manually editing the Rules.mk to import CFLAGS) or is there a better way to go about it?

Cheers

Jerome

Philip Taylor wrote:
Jerome Brown wrote on 15/11/2004 23:19:

No, I do not have those lines in my Rules.mk file. It was downloaded this morning using the ebuild, so was the xen-2.0.tgz file from sourceforge. If I add -nopie to the CFLAGS in Rules.mk file xen will compile fine, however if I add -nopie to my environment CFLAGS it does not get picked up by the xen build script. Therefore I can compile and install it, but it takes manual intervention, which defeats the idea of using an ebuild :)


Have you tried it with the updated ebuild (by SpanKY) at http://bugs.gentoo.org/attachment.cgi?id=43893 ? I'm not completely sure what it actually does, but it looks a bit like it alters CFLAGS in Rules.mk and a few other Makefiles to pick up the environment's CFLAGS:
    sed -i \
        -e "/CFLAGS/s:-O3:${CFLAGS}:" \
        tools/libx{c,util}/Makefile \
        tools/misc/{miniterm,nsplitd}/Makefile \
        tools/{misc,xentrace}/Makefile \
        xen/arch/x86/Rules.mk || die "sed cflags"



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel