From patchwork Thu Nov 24 16:03:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 83954 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp237954obn; Thu, 24 Nov 2016 08:04:22 -0800 (PST) X-Received: by 10.200.50.93 with SMTP id y29mr3049861qta.124.1480003462732; Thu, 24 Nov 2016 08:04:22 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k41si22819590qkh.316.2016.11.24.08.04.22; Thu, 24 Nov 2016 08:04:22 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 590B960859; Thu, 24 Nov 2016 16:04:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id EFEB462DD6; Thu, 24 Nov 2016 16:03:50 +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 7865860A35; Thu, 24 Nov 2016 16:03:47 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id 6DE0760942 for ; Thu, 24 Nov 2016 16:03:45 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id b14so31938676lfg.2 for ; Thu, 24 Nov 2016 08:03:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/J+RhgHS+33WXi4xye4LkYlb7cpmzpC58GGTPIgNpLg=; b=jK1HNSSG4YcnTIH2watU7NxF8e7Nxeo5ZznazxV2mS/zYlZWHtarCO3Dg7/qS6prKS +ManNbY+xm83xu3Rt6GPuX4snkpYHUh8y5mbwaw8K+OaJ2CIfj6BnL9HtUVffAKnaUFv NQGivfguOxaNf0OL2Cr0qlO0eMi7d0NoIklHeIHviYI7G2xuFdSPq5tlSL+mMrjv+7eS 9WsVAORSU9lMp3E6qVY+YGzVRq5l1/0B1q7WdZ2hjx4CsTBLj6heaRHc6JkX9K5Frmjs EwcDcuDMuZLn2lXGdW4OKrqSEG4qGUY8GiPDpGJd0d+1TSQZy+PjJEXX8nmgDU0uCBff sG3Q== X-Gm-Message-State: AKaTC013Gy4CFHYA/2t8oc4d5OSgL1cJpw4Y12S9BFIvnOIS1KqqFuh1htSTzJ6yMJZBGUX1hBo= X-Received: by 10.25.205.17 with SMTP id d17mr1495118lfg.29.1480003424260; Thu, 24 Nov 2016 08:03:44 -0800 (PST) Received: from localhost.localdomain (ppp46-138-205-38.pppoe.spdop.ru. [46.138.205.38]) by smtp.gmail.com with ESMTPSA id h63sm8338950ljh.20.2016.11.24.08.03.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Nov 2016 08:03:43 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 24 Nov 2016 19:03:07 +0300 Message-Id: <1480003389-19250-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1480003389-19250-1-git-send-email-maxim.uvarov@linaro.org> References: <1480003389-19250-1-git-send-email-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCHv6 1/3] configure.ac: disable shared library for non abi compat mode X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" original configure.ac enables abi compat mode by default, even without --enable-abi-compat provided. And has broken logic to disable abi compat mode. Correct logic to build abi compat mode and option to disable it. Shared library is not needed for non abi compat mode, so turn it off. Signed-off-by: Maxim Uvarov --- configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.7.1.250.gff4ea60 diff --git a/configure.ac b/configure.ac index be5a292..7cb0c7a 100644 --- a/configure.ac +++ b/configure.ac @@ -241,16 +241,19 @@ ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG=$ODP_DEBUG" ODP_ABI_COMPAT=1 abi_compat=yes AC_ARG_ENABLE([abi-compat], - [ --enable-abi-compat build all targets in ABI compatible mode (default=yes)], + [ --disable-abi-compat disable build all targets in ABI compatible mode (default=no)], [if test "x$enableval" = "xyes"; then ODP_ABI_COMPAT=1 - abi_compat=yes else ODP_ABI_COMPAT=0 - abi_compat=no fi]) AC_SUBST(ODP_ABI_COMPAT) +if test $ODP_ABI_COMPAT -eq 0; then + enable_shared=no + abi_compat=no +fi + ########################################################################## # Default warning setup ##########################################################################