aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-08-03 19:01:44 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-08-04 22:15:15 +0800
commit98a8eb47739b8b9f1182ec3d2867fa425e10fd1c (patch)
tree714a6607f9d5b175aef1017b77133ac0be4645af
parentBuild: rename libcppbash to libbash (diff)
downloadlibbash-98a8eb47739b8b9f1182ec3d2867fa425e10fd1c.tar.gz
libbash-98a8eb47739b8b9f1182ec3d2867fa425e10fd1c.tar.bz2
libbash-98a8eb47739b8b9f1182ec3d2867fa425e10fd1c.zip
Build: add ABI version
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac1
2 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 63cabda..9a11e03 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -287,6 +287,7 @@ libbash_la_CXXFLAGS += -Wconversion -Wsign-conversion
endif
libbash_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
libbash_la_LIBADD = libparser.la libwalker.la
+libbash_la_LDFLAGS = -version-info $(LIBBASH_SO_VERSION)
EXTRA_DIST = bashast/bashast.g \
bashast/libbashWalker.g \
diff --git a/configure.ac b/configure.ac
index c5bbbb1..c05d21d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,6 +24,7 @@ AM_INIT_AUTOMAKE([foreign parallel-tests color-tests subdir-objects 1.11])
AM_SILENT_RULES([yes])
AC_PROG_CXX
LT_INIT
+AC_SUBST([LIBBASH_SO_VERSION], [0:0:0])
AC_ARG_ENABLE([developer],
[AS_HELP_STRING([--enable-developer],[enables various QA checks])])