From patchwork Fri Jan 23 15:42:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 43673 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 3ED10218DB for ; Fri, 23 Jan 2015 15:43:05 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c13sf5262133eek.1 for ; Fri, 23 Jan 2015 07:43:04 -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=JFgc0ShfusoA2tSKrDLwDl3PWH/ZtF6J4qIek1e1iQTY5CQo14m44hIXm5EjD1O+ch fq/xWk2ehbJOhDCA16oY0e0ixh7aKbPeLgMiUyqsLASGH4NVVeCWtexlhPpvYsRPlXF6 ydS4xo2aa1fnBq1l6C3I9FdiJEHvaCx1zDY4Q0O2oBLvqhwB/FlGr/z4yYMIolIaKfPN rY7eKFNN6w1ioIAhNQRrgc3Vb9Is1U71BFjsmnVn4yDKxzsNmoYFGwgRsMr1/IRbjQR5 mySPvFkZq96XlHya1GW3fBQv6JjfR3M+KNJ1UPEGILelyqHow5pRdF2SzRFYJyb1/Crv NVBw== X-Gm-Message-State: ALoCoQmebmuFCVay+ZlHtm1LE1oIZ8dzQHdyL+u5V8eTEIYJ8fMO3meRFdV2I3A77emVfCSZtbvw X-Received: by 10.152.3.234 with SMTP id f10mr1095094laf.1.1422027784309; Fri, 23 Jan 2015 07:43:04 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.232 with SMTP id t8ls90626laj.100.gmail; Fri, 23 Jan 2015 07:43:04 -0800 (PST) X-Received: by 10.112.188.201 with SMTP id gc9mr8185424lbc.6.1422027784061; Fri, 23 Jan 2015 07:43:04 -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 u8si1660689lag.83.2015.01.23.07.43.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 07:43:04 -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 10so6486539lbg.6 for ; Fri, 23 Jan 2015 07:43:04 -0800 (PST) X-Received: by 10.112.64.35 with SMTP id l3mr7930236lbs.82.1422027783962; Fri, 23 Jan 2015 07:43:03 -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 c8csp296141lbb; Fri, 23 Jan 2015 07:43:03 -0800 (PST) X-Received: by 10.224.7.197 with SMTP id e5mr620030qae.64.1422027782480; Fri, 23 Jan 2015 07:43:02 -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 47si2361168qgc.68.2015.01.23.07.42.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 23 Jan 2015 07:43:02 -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 1YEgNr-0006rA-VP; Fri, 23 Jan 2015 15:42:55 +0000 Received: from mail-la0-f52.google.com ([209.85.215.52]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YEgNh-0006qL-Sd for lng-odp@lists.linaro.org; Fri, 23 Jan 2015 15:42:46 +0000 Received: by mail-la0-f52.google.com with SMTP id ge10so3801947lab.11 for ; Fri, 23 Jan 2015 07:42:40 -0800 (PST) X-Received: by 10.112.51.44 with SMTP id h12mr8076078lbo.5.1422027759730; Fri, 23 Jan 2015 07:42:39 -0800 (PST) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id cj6sm527451lad.38.2015.01.23.07.42.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 07:42:39 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 23 Jan 2015 16:42:28 +0100 Message-Id: <1422027750-25541-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422027750-25541-1-git-send-email-anders.roxell@linaro.org> References: <1422027750-25541-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv6 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 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)'