From patchwork Tue Nov 29 16:32:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 84866 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1671531qgi; Tue, 29 Nov 2016 08:33:39 -0800 (PST) X-Received: by 10.200.56.186 with SMTP id f55mr24442308qtc.75.1480437219406; Tue, 29 Nov 2016 08:33:39 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h64si27944443qtd.325.2016.11.29.08.33.31; Tue, 29 Nov 2016 08:33:39 -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 283A962C92; Tue, 29 Nov 2016 16:33:31 +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 5147861239; Tue, 29 Nov 2016 16:32:57 +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 A89C160C20; Tue, 29 Nov 2016 16:32:48 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by lists.linaro.org (Postfix) with ESMTPS id 04D1B6094F for ; Tue, 29 Nov 2016 16:32:47 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id c13so125697024lfg.0 for ; Tue, 29 Nov 2016 08:32: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=O6MKIq40j0wPDMLuu1sF4jRHJ7oRxOiVnoTfjWFj/+cy8XrzA7ak3Qcf5MOMR2AMsg V3tkW657v1HRcT0IsoE3JjRasiVkPurdmFEWR2r/tGrjUTaSudW+BbEe0ufwX7dmBbnn TsDexxS+0RWy7ZLQo8E+h2mJmf1O56GZjhr9JTNu0WEjw8RaDx8In/5ysZeULSSiY3jb 2iiWzU/+TcLG0pK9GS3R6FqV3zScLOpxLotsJ1Y3jAX0YVRymadYIIQ6JnvKCJEnSZZN Dq7vPTl6Ut6JzuJau5rs9pE5vQSRaYdQM8erjBWHGLaRoLFrXh3Hc9uo5zr3DQl2kEbG nc7w== X-Gm-Message-State: AKaTC01LFcyXDNzd+a3XSnU+HaUmZFxgkZonYTipvFrk6wQO+jfQmY2vNjk2eIsOIWNlbN88kb0= X-Received: by 10.46.32.76 with SMTP id g73mr11808231ljg.22.1480437165543; Tue, 29 Nov 2016 08:32:45 -0800 (PST) Received: from localhost.localdomain (ppp46-138-205-38.pppoe.spdop.ru. [46.138.205.38]) by smtp.gmail.com with ESMTPSA id u74sm13892256lfi.9.2016.11.29.08.32.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Nov 2016 08:32:45 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 29 Nov 2016 19:32:34 +0300 Message-Id: <1480437156-32174-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1480437156-32174-1-git-send-email-maxim.uvarov@linaro.org> References: <1480437156-32174-1-git-send-email-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCHv8 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}