From patchwork Wed May 29 13:30:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 247266 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 65C792C0333 for ; Wed, 29 May 2013 23:32:00 +1000 (EST) Received: from localhost ([::1]:33000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhgTu-0006xZ-Im for incoming@patchwork.ozlabs.org; Wed, 29 May 2013 09:31:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhgTF-0006lF-Pf for qemu-devel@nongnu.org; Wed, 29 May 2013 09:31:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhgT9-0008N9-9O for qemu-devel@nongnu.org; Wed, 29 May 2013 09:31:17 -0400 Received: from mail-oa0-f51.google.com ([209.85.219.51]:36491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhgT9-0008Mg-5B for qemu-devel@nongnu.org; Wed, 29 May 2013 09:31:11 -0400 Received: by mail-oa0-f51.google.com with SMTP id f4so11531045oah.38 for ; Wed, 29 May 2013 06:31:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=clcL9yXeCQ0rvV5z4Oa/RaX+6KMsbbaCx93+4HckW9E=; b=SNMGisaDq9lwAli3HpwXzsSmy3trk6yTZ7Y50R982PTVxNPJug+3SG5zk5MYW8SFIu 9lgJ0ExhSET1GZ3c/oa9RnNoBZSLyzCtDv8Uez15x3+ai2CejZilJXjM1yWQRsz5kTdd wWWaxXWtV1ddLkKtZg+Mncn/q7OP1asRAlhwGxNABrfUQqIvOvkFV9fv2gb8XoDNGigE rFJ0s5bYmwddXUt1yKAFHtedSlTRBOI/kAXMgJRIvJIyhckzlUk5YAiLLqXkT4Dzxloe wXGrPeMf/UIoBeRRAdoC9g9nvnL+NONBsWhAKoaetrM219/51BVb2sboSKCnWMLsBUqN VAag== X-Received: by 10.60.134.71 with SMTP id pi7mr1565440oeb.107.1369834269762; Wed, 29 May 2013 06:31:09 -0700 (PDT) Received: from ka1.ozlabs.ibm.com (ibmaus65.lnk.telstra.net. [165.228.126.9]) by mx.google.com with ESMTPSA id b1sm29390039oeo.8.2013.05.29.06.31.05 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 May 2013 06:31:08 -0700 (PDT) From: Alexey Kardashevskiy To: Paolo Bonzini , Peter Maydell Date: Wed, 29 May 2013 23:30:43 +1000 Message-Id: <1369834243-17088-1-git-send-email-aik@ozlabs.ru> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmtW4STgH7K886NR0ik3qrO4aGsCbB9naBjEVyMzEmJzO+y6lndZgYtLb0Q3IjM0b/kqwzO X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.219.51 Cc: Alexey Kardashevskiy , qemu-trivial@nongnu.org, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH v3] qemu: fix out of tree cross compile X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The symlink to "asm" 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 --- Reposting it as a top level patch. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 5ae7e4a..eca2a20 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\$(SRC_PATH)/linux-headers -I$(pwd)/linux-headers $QEMU_INCLUDES" ;; esac