From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 56515A00E6 for ; Thu, 13 Jun 2019 16:24:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B4B6A1D609; Thu, 13 Jun 2019 16:24:12 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 60C191D5E0 for ; Thu, 13 Jun 2019 16:24:07 +0200 (CEST) Received: from [107.15.85.130] (helo=hmswarspite.think-freely.org) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1hbQdu-0000fy-Pw; Thu, 13 Jun 2019 10:24:04 -0400 Received: from hmswarspite.think-freely.org (localhost [127.0.0.1]) by hmswarspite.think-freely.org (8.15.2/8.15.2) with ESMTP id x5DENm2M009323; Thu, 13 Jun 2019 10:23:48 -0400 Received: (from nhorman@localhost) by hmswarspite.think-freely.org (8.15.2/8.15.2/Submit) id x5DENmg4009322; Thu, 13 Jun 2019 10:23:48 -0400 From: Neil Horman To: dev@dpdk.org Cc: Neil Horman , Jerin Jacob Kollanukkaran , Bruce Richardson , Thomas Monjalon Date: Thu, 13 Jun 2019 10:23:36 -0400 Message-Id: <20190613142344.9188-3-nhorman@tuxdriver.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190613142344.9188-1-nhorman@tuxdriver.com> References: <20190525184346.27932-1-nhorman@tuxdriver.com> <20190613142344.9188-1-nhorman@tuxdriver.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: [dpdk-dev] [PATCH v2 02/10] meson: add BUILDING_RTE_SDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The __rte_internal macro is defined dependent on the value of the build environment variable BUILDING_RTE_SDK. This variable was set in the Makefile environment but not the meson environment, so lets reconcile the two by defining it for meson in the lib and drivers directories, but not the examples/apps directories, which should be treated as they are not part of the core DPDK library Signed-off-by: Neil Horman CC: Jerin Jacob Kollanukkaran CC: Bruce Richardson CC: Thomas Monjalon --- drivers/meson.build | 1 + lib/meson.build | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/meson.build b/drivers/meson.build index 4c444f495..a312277d1 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -23,6 +23,7 @@ endif # specify -D_GNU_SOURCE unconditionally default_cflags += '-D_GNU_SOURCE' +default_cflags += '-DBUILDING_RTE_SDK' foreach class:dpdk_driver_classes drivers = [] diff --git a/lib/meson.build b/lib/meson.build index e067ce5ea..0e398d534 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -35,6 +35,7 @@ if is_windows endif default_cflags = machine_args +default_cflags += '-DBUILDING_RTE_SDK' if cc.has_argument('-Wno-format-truncation') default_cflags += '-Wno-format-truncation' endif -- 2.20.1