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/
Home Products Support Community News


Re: [Xen-devel] Inheriting CFLAGS

To: Jerome Brown <guruswami@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Inheriting CFLAGS
From: Philip Taylor <philip@xxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Nov 2004 23:41:14 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 16 Nov 2004 00:36:00 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <41993999.6050903@xxxxxxxxxxxx>
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>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)
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"

Philip Taylor

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