From patchwork Thu Nov 24 20:24:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 83995 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp230266qgi; Thu, 24 Nov 2016 12:25:20 -0800 (PST) X-Received: by 10.55.170.131 with SMTP id t125mr3550378qke.15.1480019120777; Thu, 24 Nov 2016 12:25:20 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k6si23274046qke.225.2016.11.24.12.25.20; Thu, 24 Nov 2016 12:25:20 -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 6A337611FE; Thu, 24 Nov 2016 20:25:20 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 090E160D2A; Thu, 24 Nov 2016 20:25:17 +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 0B8D960D2F; Thu, 24 Nov 2016 20:25:15 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id 9ADCE60D21 for ; Thu, 24 Nov 2016 20:25:13 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id b14so36153382lfg.2 for ; Thu, 24 Nov 2016 12:25:13 -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=WB9lLwrOxbn5+QY+Zk+vfBg4SL4e6rMYGk8/+7v9lcw=; b=Ip3jwqaEnH8PML3svg/eNT8vNok4qZbcyKTX/0Mbh1SALpoio5EYG+HX60yH8nF586 +OQnHdU5InQwAVe8uMKvKWxy7qVsM+JSzXx1TLp6AQP/of+5ZQ1z1Zi//3EgcNgdU74E ZcfCJ+ia1Xrk/xGAWFwbcc9t/P1fHNvAd3m+VH6Sr1bRF95AKS342BFaJAud96vPzs2A DHKxP8c2wbCk9XR2ByphgBXi+Xq4Aq3cFiDkqHINkyOYVNMvj0G1agOQL2NzMYG9xMPs Muxo1figAf07U4tgWrEGT7HtshpnerJnRBf/jfgWqCOVPuK18EEdr29stHqXe7DTEbnr ua6A== X-Gm-Message-State: AKaTC02KVsdbWkIhLtCJB6TxRXKfRDhiFNZw/TO2YkvjeBdTXG4C6m/GHfNMbKVzszQfxTh1/8c= X-Received: by 10.46.8.9 with SMTP id 9mr2172091lji.47.1480019112471; Thu, 24 Nov 2016 12:25:12 -0800 (PST) Received: from localhost.localdomain (ppp46-138-205-38.pppoe.spdop.ru. [46.138.205.38]) by smtp.gmail.com with ESMTPSA id m16sm8665140lfj.24.2016.11.24.12.25.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Nov 2016 12:25:11 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 24 Nov 2016 23:24:48 +0300 Message-Id: <1480019090-13539-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1480019090-13539-1-git-send-email-maxim.uvarov@linaro.org> References: <1480019090-13539-1-git-send-email-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCHv7 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, 4 insertions(+), 5 deletions(-) -- 2.7.1.250.gff4ea60 diff --git a/configure.ac b/configure.ac index be5a292..b460a65 100644 --- a/configure.ac +++ b/configure.ac @@ -241,13 +241,11 @@ 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)], - [if test "x$enableval" = "xyes"; then - ODP_ABI_COMPAT=1 - abi_compat=yes - else + [ --disable-abi-compat disables ABI compatible mode, enables inline code in header files], + [if test "x$enableval" = "xno"; then ODP_ABI_COMPAT=0 abi_compat=no + enable_shared=no fi]) AC_SUBST(ODP_ABI_COMPAT) @@ -336,6 +334,7 @@ AC_MSG_RESULT([ static libraries: ${enable_static} shared libraries: ${enable_shared} ABI compatible: ${abi_compat} + ODP_ABI_COMPAT: ${ODP_ABI_COMPAT} cunit: ${cunit_support} test_vald: ${test_vald} test_perf: ${test_perf}