From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77715 invoked by alias); 20 Sep 2017 14:26:23 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 77703 invoked by uid 89); 20 Sep 2017 14:26:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1862 X-HELO: mail-wr0-f172.google.com Received: from mail-wr0-f172.google.com (HELO mail-wr0-f172.google.com) (209.85.128.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Sep 2017 14:26:21 +0000 Received: by mail-wr0-f172.google.com with SMTP id l39so2317947wrl.12 for ; Wed, 20 Sep 2017 07:26:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=McxaKBUEKTDjfYaHkbHS/zzAMg3bFwqZiO7heSStqOM=; b=UzgJcSaaCql3npDIgfpdq7WmUfgHLtbXzzjfpAguVjQg6C7IbDGVbMUtcL66uv227G mQYjiV31kbF8weRARW+0+7+5YtRC4W2eTqN/Ue8nNCJj23+ABwF9BCIXRVINlnunCT09 X4zeHt4Zq5NZn2kemKVES+RP6YSAGzbq/ECguscpdgDe70RogBkgtwf+0kGPPH73JJUk RknT/HTSAITEXdQ/qTme8/m8eYUos3iGRtZaboHAqPTEauKilrJW7Wc4PlBWgKSLhxtE UaUHQsTiYBv2QTi/CHqD4TcqMeyK8XPUneU21kr5/ncPfgFbSMMcS6yluTBAqyKCZNpA vOqw== X-Gm-Message-State: AHPjjUjDKCos1tAuK+7U/+DnGKDOjBXOpsqNuxLWGZAN4lQSrOk982S/ WiS+kZ3LtT62IpNAe+ZjRjq1Sw== X-Google-Smtp-Source: AOwi7QC4kI8dcPCd1Ztr0/Fl1pLhEttyyhHPH0ffYSZLh72O4O8/qcZLCv5plekLr7Kh6KY0GDZ0tQ== X-Received: by 10.223.177.134 with SMTP id q6mr5324859wra.3.1505917578521; Wed, 20 Sep 2017 07:26:18 -0700 (PDT) Received: from E107787-LIN (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id o27sm1840658wro.72.2017.09.20.07.26.17 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 20 Sep 2017 07:26:17 -0700 (PDT) From: Yao Qi To: Simon Marchi Cc: gdb-patches@sourceware.org Subject: Re: [RFC] Replicate src dir in build dir References: <1505832159-23038-1-git-send-email-yao.qi@linaro.org> <867ewtbxwb.fsf@gmail.com> Date: Wed, 20 Sep 2017 14:26:00 -0000 In-Reply-To: (Simon Marchi's message of "Wed, 20 Sep 2017 10:17:04 +0200") Message-ID: <86377hbg58.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00489.txt.bz2 Simon Marchi writes: > I was wondering if this line needed changing > > override COMPILE.pre =3D source=3D'$<' object=3D'$@' libtool=3Dno \ > DEPDIR=3D$(DEPDIR) $(DEPMODE) $(depcomp) $(CC) > > In particular, is DEPDIR treated as relative to the created object > file or relative to the current working directory by depcomp. I > honestly don't even know when this actually used. depcomp has already taken care of it, # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. I hack Makefile, to set "depmode=3Dgcc", # Dependency tracking information. DEPMODE =3D depmode=3Dgcc and "make arch/amd64.o", source=3D'../../binutils-gdb/gdb/arch/amd64.c' object=3D'arch/amd64.o' libt= ool=3Dno DEPDIR=3D.deps depmode=3Dgcc /bin/bash ../../binutils-gdb/gdb/../d= epcomp g++ -x c++ -std=3Dgnu++11 -g -O2 -I. -I../../binutils-gdb/gdb -I..= /../binutils-gdb/gdb/common -I../../binutils-gdb/gdb/config -DLOCALEDIR=3D"= \"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../binutils-gdb/gdb/../in= clude/opcode -I../../binutils-gdb/gdb/../opcodes/.. -I../../binutils-gdb/gd= b/../readline/.. -I../../binutils-gdb/gdb/../zlib -I../bfd -I../../binutils= -gdb/gdb/../bfd -I../../binutils-gdb/gdb/../include -I../libdecnumber -I../= ../binutils-gdb/gdb/../libdecnumber -I../../binutils-gdb/gdb/gnulib/import= -Ibuild-gnulib/import -DTUI=3D1 -pthread -I/usr/include/guile/2.0 -I/u= sr/include/python2.7 -I/usr/include/python2.7 -Wall -Wpointer-arith -Wno-un= used -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wem= pty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-com= pare -Wno-narrowing -Wno-error=3Dmaybe-uninitialized -Wformat-nonliteral -W= error -c -o arch/amd64.o ../../binutils-gdb/gdb/arch/amd64.c and the dependency file is generated in arch/.deps/amd64.Po, which looks right to me. --=20 Yao (=E9=BD=90=E5=B0=A7)