From patchwork Tue Jan 20 13:51:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 43369 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F1158218DB for ; Tue, 20 Jan 2015 13:51:42 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c13sf6332585eek.1 for ; Tue, 20 Jan 2015 05:51:42 -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=+80hkuYeW22VWWI3CTbPY19hrMiPmbq3nvEg18YyADE=; b=DYmKHE2jMTmNk8KMhrdhPcv8Ge32FUR0ztpnlnYcvvX+5W0kpJHei3a9DrrxLKRpRp /WdV3p5m73ATgxk6BsjIKyN8H2zYbWuhOS6l6OFNQoRAPdPhsA0T9UfwN0LKtLoS9VpN a+aouxZ/L8Tgqrcf88RqrRZOh0MpjG2hIRR7Wk6bYMvNOZLAPPvGhbfXq8jYH7oEO71X +84b1x9y/YOg6ZdLUbjvxCten5iUUkUJfOJ6a8UaA0zcV51oNvC3RWBvtt7V3sf8CRGW m+z+yvTfnMTRVNbhd9t8pG5wv0ox3pgw8iVEli4yei47scUwbmiOs9Ol/Qdq3TgtU2yE MxIQ== X-Gm-Message-State: ALoCoQmtSsMXIC7BuolV1PtZkBoIdjzjH8fOdWUDW/iMvdJ1l2OtEmpEsDNer9A6NfMUmSFxGZjG X-Received: by 10.112.143.167 with SMTP id sf7mr532731lbb.0.1421761902224; Tue, 20 Jan 2015 05:51:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.100 with SMTP id p4ls776523laj.24.gmail; Tue, 20 Jan 2015 05:51:42 -0800 (PST) X-Received: by 10.152.44.193 with SMTP id g1mr17334038lam.15.1421761902012; Tue, 20 Jan 2015 05:51:42 -0800 (PST) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id r10si4086640laj.58.2015.01.20.05.51.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 05:51:41 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id z11so33688271lbi.6 for ; Tue, 20 Jan 2015 05:51:41 -0800 (PST) X-Received: by 10.152.6.132 with SMTP id b4mr38795861laa.59.1421761901915; Tue, 20 Jan 2015 05:51:41 -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 c8csp1424082lbb; Tue, 20 Jan 2015 05:51:41 -0800 (PST) X-Received: by 10.224.79.137 with SMTP id p9mr2691530qak.32.1421761900396; Tue, 20 Jan 2015 05:51:40 -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 f103si11695693qgd.20.2015.01.20.05.51.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 20 Jan 2015 05:51:40 -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 1YDZDV-00014Z-K3; Tue, 20 Jan 2015 13:51:37 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YDZDL-00013O-Bz for lng-odp@lists.linaro.org; Tue, 20 Jan 2015 13:51:27 +0000 Received: by mail-lb0-f177.google.com with SMTP id p9so10254774lbv.8 for ; Tue, 20 Jan 2015 05:51:21 -0800 (PST) X-Received: by 10.112.14.134 with SMTP id p6mr39079167lbc.36.1421761881113; Tue, 20 Jan 2015 05:51:21 -0800 (PST) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id t10sm4606842lat.31.2015.01.20.05.51.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jan 2015 05:51:20 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 20 Jan 2015 14:51:34 +0100 Message-Id: <1421761896-23612-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421761896-23612-1-git-send-email-anders.roxell@linaro.org> References: <1421761896-23612-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 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.175 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 Reviewed-by: Steve McIntyre --- configure.ac | 9 +++++++++ platform/Makefile.inc | 2 ++ 2 files changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index c85ffc2..7fb8fa7 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,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)'