From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh6OG-0000ME-Db for qemu-devel@nongnu.org; Mon, 27 May 2013 18:59:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uh6OD-0004IG-Vr for qemu-devel@nongnu.org; Mon, 27 May 2013 18:59:44 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:47490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh6OD-0004I8-P0 for qemu-devel@nongnu.org; Mon, 27 May 2013 18:59:41 -0400 Received: by mail-pd0-f175.google.com with SMTP id 6so6571598pdd.6 for ; Mon, 27 May 2013 15:59:40 -0700 (PDT) Message-ID: <51A3E556.3020509@ozlabs.ru> Date: Tue, 28 May 2013 08:59:34 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <51A36976.80608@ozlabs.ru> <1369663979-25613-1-git-send-email-aik@ozlabs.ru> <51A37568.1060705@redhat.com> In-Reply-To: <51A37568.1060705@redhat.com> Content-Type: text/plain; charset=KOI8-R 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: Paolo Bonzini Cc: qemu-trivial@nongnu.org, Peter Maydell , qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 05/28/2013 01:02 AM, Paolo Bonzini wrote: > 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. So do I need this? + QEMU_INCLUDES="-I$(pwd)/linux-headers -I\$(SRC_PATH)/linux-headers $QEMU_INCLUDES" -- Alexey