Received: from eggs.gnu.org ([140.186.70.92]:56265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4eQz-0000D2-8y for qemu-devel@nongnu.org; Fri, 16 Sep 2011 15:50:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4eQx-0007LT-Gn for qemu-devel@nongnu.org; Fri, 16 Sep 2011 15:50:49 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:45043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4eQx-0007L7-CC for qemu-devel@nongnu.org; Fri, 16 Sep 2011 15:50:47 -0400 From: Stefan Weil Date: Fri, 16 Sep 2011 21:50:43 +0200 Message-Id: <1316202643-29867-1-git-send-email-weil@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] Makefile: Fix broken build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , =?UTF-8?q?Llu=C3=ADs=20Vilanova?= make -C mybuilddir no longer works (regression caused by commit) 388d475815c23901010a25c845eb078d47ee0740. PWD is the directory of the caller (not mybuilddir), so BUILD_DIR is set to the wrong value. GNU make sets CURDIR to the correct value. Use this macro instead of PWD. Cc: Llu=C3=ADs Vilanova Cc: Anthony Liguori Signed-off-by: Stefan Weil --- Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 57cc399..a211158 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Makefile for QEMU. =20 -# Always point to the root of the build tree -BUILD_DIR=3D$(PWD) +# Always point to the root of the build tree (needs GNU make). +BUILD_DIR=3D$(CURDIR) =20 GENERATED_HEADERS =3D config-host.h trace.h qemu-options.def ifeq ($(TRACE_BACKEND),dtrace) --=20 1.7.2.5