From: Philip Taylor Subject: Re: Inheriting CFLAGS Date: Mon, 15 Nov 2004 23:41:14 +0000 Message-ID: <41993E9A.90000@zaynar.demon.co.uk> References: <41993999.6050903@orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <41993999.6050903@orcon.net.nz> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jerome Brown Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org 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 philip@zaynar.demon.co.uk ------------------------------------------------------- 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