From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgywZ-0004dD-Ts for qemu-devel@nongnu.org; Mon, 27 May 2013 11:02:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgywU-0005tA-NF for qemu-devel@nongnu.org; Mon, 27 May 2013 11:02:39 -0400 Sender: Paolo Bonzini Message-ID: <51A37568.1060705@redhat.com> Date: Mon, 27 May 2013 17:02:00 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <51A36976.80608@ozlabs.ru> <1369663979-25613-1-git-send-email-aik@ozlabs.ru> In-Reply-To: <1369663979-25613-1-git-send-email-aik@ozlabs.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu: fix out of tree cross compile List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: qemu-trivial@nongnu.org, Peter Maydell , qemu-ppc@nongnu.org, qemu-devel@nongnu.org Il 27/05/2013 16:12, Alexey Kardashevskiy ha scritto: > The symlink to platform linux headers is made in the build tree by > the configure script but gcc is not told to look for them there. > The patch fixes this. > > Signed-off-by: Alexey Kardashevskiy > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index 5ae7e4a..5ba691a 100755 > --- a/configure > +++ b/configure > @@ -547,7 +547,7 @@ Haiku) > if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then > audio_possible_drivers="$audio_possible_drivers fmod" > fi > - QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers $QEMU_INCLUDES" > + QEMU_INCLUDES="-I$(pwd)/linux-headers $QEMU_INCLUDES" You need to have both directories. Files other than asm/*.h will be found in the source path. Paolo