From patchwork Wed Nov 30 14:57:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 85882 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp263482qgi; Wed, 30 Nov 2016 06:57:59 -0800 (PST) X-Received: by 10.55.185.133 with SMTP id j127mr28002780qkf.39.1480517879025; Wed, 30 Nov 2016 06:57:59 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o63si37779952qkc.253.2016.11.30.06.57.57; Wed, 30 Nov 2016 06:57:58 -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 B4CD962C62; Wed, 30 Nov 2016 14:57:57 +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 5C83F6092E; Wed, 30 Nov 2016 14:57:52 +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 809F760DE7; Wed, 30 Nov 2016 14:57:49 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id 8CC0F6092E for ; Wed, 30 Nov 2016 14:57:46 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id t196so148867036lff.3 for ; Wed, 30 Nov 2016 06:57:46 -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=dGAhA6ehbs1KI6MktsHj44Jckj692pLBwSbnM5A/BqYGOK0Wai2nL4P+5l8d7skBJZ EEXQ6yPuCZjywGTHZCT4TDz/AFdpzvKOc7E3JuXOkTuDl7A3ABFbmX+Az+rmZsKXbLpO nWXDdbMKrkxqN8E76zAYfCdjDdiRG/iVa6TDEbClr2mDnIxkPuQGvcZlm6nf+jnInSMI 4th20iGv6+aGsQ80jA9sKksA9v+EwYG6aK+tqv6bH0EiREvGc5nPeY73/87KGmIGas+W osSk6o42PQ+2hypvEW7ravtPX0J6PQxoz7e/0UwRcqtgrrTQjQw9W/8rerC5Mb+qiSda W51A== X-Gm-Message-State: AKaTC02rT9XRbQLNw1400XzOBj45svQxpiCMHmz0fzTdnY3TrUlUxCab1UQeFaqmr/ll6SncqHs= X-Received: by 10.25.23.80 with SMTP id n77mr12903316lfi.72.1480517865148; Wed, 30 Nov 2016 06:57:45 -0800 (PST) Received: from localhost.localdomain (ppp91-77-165-188.pppoe.mtu-net.ru. [91.77.165.188]) by smtp.gmail.com with ESMTPSA id x142sm14336651lfa.32.2016.11.30.06.57.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 06:57:44 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 30 Nov 2016 17:57:26 +0300 Message-Id: <1480517848-4037-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1480517848-4037-1-git-send-email-maxim.uvarov@linaro.org> References: <1480517848-4037-1-git-send-email-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCHv9 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}