From patchwork Fri Jul 24 11:27:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51415 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 25DEA20323 for ; Fri, 24 Jul 2015 11:29:07 +0000 (UTC) Received: by lbvb1 with SMTP id b1sf6469514lbv.3 for ; Fri, 24 Jul 2015 04:29:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=TvWed0+DST3o9R3cb0dZpyHdNSqEfbZmicdxyJ8A3hQ=; b=Qt32RtTBBJzuuVoWN3gKk0Pr/+eI8fDH3dOHqiC7EjI48NasWCH3R4L7cuOpuz4y3N KftWo5uKVutyfHK1YI2cnS5Fj55Jr2nvURhYyTLJse1YjFMasoNEjaU5YBT3sw2GtnS5 R1Qr/yU6TO+I1SmHlcaLttjUWMqClq+LG9YNTsyQuxMgP8o3b0SFU80xDa8zhZOqQe9y m2b6nsDjHyZXgl5QxqEOUWCDklmgT0152xdoJrRt2WJKTqfyRhffG0Afcu9wkz+QsiuD 5gHN2aaD3WU0uNS7J3iZxZAf1WubDhOT6M7sW29aOxq1uzSeSPXdg16epL/mriJyDpUE iNsA== X-Gm-Message-State: ALoCoQnjcDiKUMljkAItAjGAMvjFfO9qCy/E/ExRh8eWA3vnxOkBOYFin4qwMes8i1FG54b0ui5x X-Received: by 10.112.188.233 with SMTP id gd9mr6003484lbc.12.1437737346159; Fri, 24 Jul 2015 04:29:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.219.4 with SMTP id pk4ls382467lac.90.gmail; Fri, 24 Jul 2015 04:29:06 -0700 (PDT) X-Received: by 10.112.55.105 with SMTP id r9mr13147901lbp.89.1437737346009; Fri, 24 Jul 2015 04:29:06 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id b10si7279229laf.38.2015.07.24.04.29.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 04:29:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbbzr7 with SMTP id zr7so13251682lbb.1 for ; Fri, 24 Jul 2015 04:29:05 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr13391681lbb.35.1437737345881; Fri, 24 Jul 2015 04:29:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1114117lba; Fri, 24 Jul 2015 04:29:04 -0700 (PDT) X-Received: by 10.140.22.73 with SMTP id 67mr19116755qgm.42.1437737344277; Fri, 24 Jul 2015 04:29:04 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g22si9621697qhc.47.2015.07.24.04.29.03; Fri, 24 Jul 2015 04:29:04 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 6A13361D14; Fri, 24 Jul 2015 11:29:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0B5F661B51; Fri, 24 Jul 2015 11:28:07 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9C94061B50; Fri, 24 Jul 2015 11:27:59 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 1531561835 for ; Fri, 24 Jul 2015 11:27:58 +0000 (UTC) Received: by lafd3 with SMTP id d3so1946167laf.1 for ; Fri, 24 Jul 2015 04:27:57 -0700 (PDT) X-Received: by 10.152.5.130 with SMTP id s2mr13207215las.31.1437737276753; Fri, 24 Jul 2015 04:27:56 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id y1sm1582274lal.39.2015.07.24.04.27.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 04:27:55 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Fri, 24 Jul 2015 13:27:21 +0200 Message-Id: <1437737259-16953-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437737259-16953-1-git-send-email-christophe.milard@linaro.org> References: <1437737259-16953-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 02/20] test: removing current dir from -I X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christophe.milard@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The goal of this patch is to remove the src directory and current directory from the standard include search path (gcc -I), so that #include <...> and #include "..." actually search different locations. This enables standard filenames (such as errno.h) to be used locally. Signed-off-by: Christophe Milard --- test/Makefile.inc | 5 ++--- test/validation/Makefile.inc | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/Makefile.inc b/test/Makefile.inc index d5b4770..2700b18 100644 --- a/test/Makefile.inc +++ b/test/Makefile.inc @@ -6,8 +6,7 @@ LIB = $(top_builddir)/lib #before libodp by setting PRE_LDADD before the inclusion. LDADD = $(PRE_LDADD) $(LIB)/libodphelper.la $(LIB)/libodp.la -INCFLAGS = -I$(srcdir) \ - -I$(top_srcdir)/test \ +INCFLAGS = -I$(top_srcdir)/test \ -I$(top_srcdir)/platform/@with_platform@/include \ -I$(top_srcdir)/platform/linux-generic/include \ -I$(top_srcdir)/include \ @@ -20,4 +19,4 @@ AM_LDFLAGS += -L$(LIB) @VALGRIND_CHECK_RULES@ valgrind_tools = memcheck drd sgcheck -TESTS_ENVIRONMENT= ODP_PLATFORM=${with_platform} EXEEXT=${EXEEXT} \ No newline at end of file +TESTS_ENVIRONMENT= ODP_PLATFORM=${with_platform} EXEEXT=${EXEEXT} diff --git a/test/validation/Makefile.inc b/test/validation/Makefile.inc index 31729b8..f4be63d 100644 --- a/test/validation/Makefile.inc +++ b/test/validation/Makefile.inc @@ -1,5 +1,10 @@ include $(top_srcdir)/test/Makefile.inc +#the following option ensure that option '-I.' is not passed to gcc, +#therefore distinguishing between '#include "X"' and '#include '. +#It allows common filenames (such as 'errno.h') to be used locally. +AUTOMAKE_OPTIONS = nostdinc + AM_CFLAGS += -I$(top_srcdir)/test/validation/common AM_LDFLAGS += -static