From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerome Brown Subject: Re: Inheriting CFLAGS Date: Tue, 16 Nov 2004 13:01:28 +1300 Message-ID: <41994358.4090601@orcon.net.nz> References: <41993999.6050903@orcon.net.nz> <41993E9A.90000@zaynar.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <41993E9A.90000@zaynar.demon.co.uk> 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: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org 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