From patchwork Thu Oct 12 02:22:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naohiro Aota X-Patchwork-Id: 10000961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA3F5602BF for ; Thu, 12 Oct 2017 02:22:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C72EE28B2B for ; Thu, 12 Oct 2017 02:22:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC0BE28B35; Thu, 12 Oct 2017 02:22:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F15C28B2B for ; Thu, 12 Oct 2017 02:22:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752854AbdJLCWe (ORCPT ); Wed, 11 Oct 2017 22:22:34 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:53445 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752623AbdJLCWd (ORCPT ); Wed, 11 Oct 2017 22:22:33 -0400 Received: by mail-pf0-f195.google.com with SMTP id t188so384343pfd.10 for ; Wed, 11 Oct 2017 19:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=KYUeSOLkE1HCX376c1548ukr/gLKpTw8cZk9x5Kovzw=; b=Le9ttwpY+6Ew5+zRAbMr4s/KIAxxYS/mPPN8AWFALUvn67Zf02NHhHdKP0m8t/E54m ZRpz8CEm3jOaWj4SbYQ/0QsyE80sBxsK4bgmLFiupc5owk61MbGNrDBippI+Z8/Ensdi JzGevr1ZdzCLmHFW8RQL8SAPz7YimKZV8AxiSVi7629FY/xQeZgs5EcNWW9Mx5hbpLEp +/otlsb/o1uqfGRW4p1+BFb+5l0KFP+sF5qB3eO+oI5ULhBrvgjmEcHulYhc1GlxrNVc glsDew29YTLC6mg4BMcDbbgmDk+T9sfixZ+IFdfoi3qm+39OBzxLiW3BtG+vsZye4RGq 3j3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=KYUeSOLkE1HCX376c1548ukr/gLKpTw8cZk9x5Kovzw=; b=eoTJbfXF1mnpALAHxjfn+v6C8QONgHg+jQr9nSMYD10IoRgS/H0n/rQft8DW0X75lq Nz/u8DjKDZhVA3uKa1zbO+yxhnJj+klMtSkWA43BOYADn07PfYTdie39UopomJSO6x1/ B5GNNfWTe5aaxsk5bnnUh55T8GX2jywakmq4F5K9txuiOTV2C0zUWofpjVnVskVCtu3m gabJv96h+ZNwQ0A2XmgBfku5kNWgEKE1FTSMQR5FBQ0Mv001ERpkrZscD+bBx4T4jV4j /mefAp0pXjq558S5jeSF/6lSYY78wVaruQMwUGdGnredEkuBA6+ixhQ8HidCvwjg0HuK XI5w== X-Gm-Message-State: AMCzsaWLJi96e452icg315nwz92AVf+vodctTAE+AgrZzIkRwwMqHW8A x+xiPEgg+kQReZ4L7SBK1KTwckTA X-Google-Smtp-Source: AOwi7QBtTkW1mwiZ7FIYp6xKRLtuCVrzPOAqvt+BA42PRdeaP53sUWvCWN0nCUDo11Dm0mnrn5A0mA== X-Received: by 10.98.74.23 with SMTP id x23mr860399pfa.205.1507774952797; Wed, 11 Oct 2017 19:22:32 -0700 (PDT) Received: from me (sslab-relay.ics.keio.ac.jp. [131.113.126.173]) by smtp.gmail.com with ESMTPSA id q69sm16278538pfg.127.2017.10.11.19.22.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Oct 2017 19:22:32 -0700 (PDT) Received: (nullmailer pid 28795 invoked by uid 1000); Thu, 12 Oct 2017 02:22:29 -0000 From: Naohiro Aota To: linux-btrfs@vger.kernel.org Cc: Naohiro Aota Subject: [PATCH] btrfs: set include path relatively Date: Thu, 12 Oct 2017 11:22:24 +0900 Message-Id: <20171012022224.28376-1-naota@elisp.net> X-Mailer: git-send-email 2.14.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently, gcc is passed the include directory with full path. As a result, dependency files (*.o.d) also record the full path at the build time. Such full path dependency is annoying for sharing the source between multiple machines, containers, or anything the path differ. And this is the same way what other program using autotools e.g. e2fsprogs is doing: $ grep top_builddir Makefile top_builddir = . CPPFLAGS = -I. -I$(top_builddir)/lib -I$(top_srcdir)/lib BUILD_CFLAGS = -g -O2 -I. -I$(top_builddir)/lib -I$(top_srcdir)/lib -DHAVE_CONFIG_H Signed-off-by: Naohiro Aota --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b1f3388..69b94fb 100644 --- a/Makefile +++ b/Makefile @@ -70,8 +70,8 @@ CFLAGS = $(SUBST_CFLAGS) \ -D_XOPEN_SOURCE=700 \ -fno-strict-aliasing \ -fPIC \ - -I$(TOPDIR) \ - -I$(TOPDIR)/kernel-lib \ + -I. \ + -I./kernel-lib \ $(EXTRAWARN_CFLAGS) \ $(DEBUG_CFLAGS_INTERNAL) \ $(EXTRA_CFLAGS)