From patchwork Wed Nov 30 20:32:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 85917 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp400374qgi; Wed, 30 Nov 2016 12:34:58 -0800 (PST) X-Received: by 10.237.53.253 with SMTP id d58mr30786841qte.29.1480538098121; Wed, 30 Nov 2016 12:34:58 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c123si38492637qkb.20.2016.11.30.12.34.57; Wed, 30 Nov 2016 12:34: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 7DDC1608BB; Wed, 30 Nov 2016 20:34: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 9BB2E608D2; Wed, 30 Nov 2016 20:34:26 +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 5C5036083F; Wed, 30 Nov 2016 20:34:21 +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 12FBE60C1D for ; Wed, 30 Nov 2016 20:33:10 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id t196so156117658lff.3 for ; Wed, 30 Nov 2016 12:33:10 -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=lXOpseuRVyFT4Re7eIVyevCfPi8pRe9H4odi/NVU6oODfm8cqydghCvmClhvmrcFiX uHRu6glUjSUibdoXVzqB96Ea9hvMjs6SQymmrRFvZpCsiM47qBnv8srQl4z0XjiDpab8 6ARTnLRCEDTIxMkaDrTc9vAb0q95iAc3Y3E13gs9AxlaxQ5LwqYKjhAFXIvB4Rgdsyel +A2zpTu/8gptM9fQWaVqzFdXqHRu4f+wnxsWNXk978YFGMcQXFdeovZ30smCQjVNRRqU MDGunBkpNoFDovq3P65CLPM13EdWbgcEPIQs9cVfs/eIsbhQAeIHEQ9r6DbKIriNRKjr Hhqg== X-Gm-Message-State: AKaTC00JjTFdeFYWoAuj1yMGHHB7N5ga9KSsqcRMxYoFCwSjuPcXZOfHV1ZIAx5B+8LanwYsws4= X-Received: by 10.46.33.165 with SMTP id h37mr17574816lji.57.1480537988603; Wed, 30 Nov 2016 12:33:08 -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 e102sm14643515lfi.25.2016.11.30.12.33.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 12:33:08 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 30 Nov 2016 23:32:51 +0300 Message-Id: <1480537973-7830-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1480537973-7830-1-git-send-email-maxim.uvarov@linaro.org> References: <1480537973-7830-1-git-send-email-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCHv10 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 Reviewed-by: Mike Holmes 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}