From patchwork Fri Jan 23 12:34:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 43630 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B8D70240D9 for ; Fri, 23 Jan 2015 12:34:53 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf4088542lbv.1 for ; Fri, 23 Jan 2015 04:34:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=W3QlRn6lwSs2peAEmUhEEJQnf9jQd0gP1/jtKzoCgcE=; b=UuBPeaO+SgkVQBxIYi5KTmdgqiIe+2pmbhyQ+LQuFo+dIYNZk6e5z/T+DtuCqT3Yql mPRG6uo9O1jwC4/pDbn5cS033qI5fplPehoW7m6HrnzgKRmcb2jdjv2rgvrVfaYp8XWl mbpO2QV+lF1OMnbv0m2ChkdYYI7x7us4IkUFrmbxYyx3izewDgpHibPLPKJ7KbZO/aGj OIJCAb5Rz8zAGuzmXbt3LuhUHA2DVAhcjnZll2ovQSh0GwrZyXSZen8Oe2qhsiuoQQgf WCKNJqYI4tCZmaUQcPY9+OZj/y2QXGwbIVdO4MkAhis53BXnFFqgpAyEQPfLFtUgovn5 QcBw== X-Gm-Message-State: ALoCoQkFblTKtnoDh0Q+r9AHGIa35B0TWx/3yO/tgXe/MYpMkqAW8iBh7E5mdIAU35okOGks0HL7 X-Received: by 10.180.105.129 with SMTP id gm1mr256433wib.3.1422016492645; Fri, 23 Jan 2015 04:34:52 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.99 with SMTP id s3ls308497lag.79.gmail; Fri, 23 Jan 2015 04:34:52 -0800 (PST) X-Received: by 10.112.170.69 with SMTP id ak5mr7059548lbc.71.1422016492481; Fri, 23 Jan 2015 04:34:52 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id zv10si1238834lbb.76.2015.01.23.04.34.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 04:34:52 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id l4so6741032lbv.13 for ; Fri, 23 Jan 2015 04:34:52 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr7149915lac.70.1422016492403; Fri, 23 Jan 2015 04:34:52 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp236486lbb; Fri, 23 Jan 2015 04:34:51 -0800 (PST) X-Received: by 10.224.79.82 with SMTP id o18mr13347271qak.3.1422016491017; Fri, 23 Jan 2015 04:34:51 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id w5si1744433qag.72.2015.01.23.04.34.49 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 23 Jan 2015 04:34:51 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YEdRn-00062c-QZ; Fri, 23 Jan 2015 12:34:47 +0000 Received: from mail-la0-f45.google.com ([209.85.215.45]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YEdRd-00061S-8B for lng-odp@lists.linaro.org; Fri, 23 Jan 2015 12:34:37 +0000 Received: by mail-la0-f45.google.com with SMTP id gd6so7012403lab.4 for ; Fri, 23 Jan 2015 04:34:31 -0800 (PST) X-Received: by 10.152.23.98 with SMTP id l2mr7024174laf.46.1422016471560; Fri, 23 Jan 2015 04:34:31 -0800 (PST) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id sj2sm425355lac.0.2015.01.23.04.34.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 04:34:30 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 23 Jan 2015 13:34:19 +0100 Message-Id: <1422016461-28976-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422016461-28976-1-git-send-email-anders.roxell@linaro.org> References: <1422016461-28976-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 2/4] configure.ac: make SO (shared object) version unique X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This converts the ODP versioning number into a SO versioning nubmer. Signed-off-by: Anders Roxell Reviewd-by: Steve McIntyre --- configure.ac | 9 +++++++++ platform/Makefile.inc | 2 ++ 2 files changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 407b213..6d30f87 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,13 @@ AC_TYPE_UINT32_T AC_TYPE_UINT64_T ########################################################################## +# Set correct platform library version +########################################################################## +AGE=0 +ODP_LIBSO_VERSION=$(echo $VERSION.$AGE | awk -F . '{printf("%d:%d:%d\n", (($1 * 100) + $2), $3, $4)}') +AC_SUBST(ODP_LIBSO_VERSION) + +########################################################################## # Determine which platform to build for ########################################################################## AC_ARG_WITH([platform], @@ -231,6 +238,8 @@ AC_MSG_RESULT([ $PACKAGE $VERSION ======== + Library version: ${ODP_LIBSO_VERSION} + with_platform: ${with_platform} prefix: ${prefix} sysconfdir: ${sysconfdir} diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 6ffa2ad..9e73fc4 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -9,3 +9,5 @@ pkgconfig_DATA = $(top_builddir)/pkgconfig/libodp.pc VPATH = $(srcdir) $(builddir) lib_LTLIBRARIES = $(LIB)/libodp.la + +AM_LDFLAGS += -version-number '$(ODP_LIBSO_VERSION)'