From 7f2f24e379d9ca65c20d072a6c0adb1c6c8a9cce Mon Sep 17 00:00:00 2001 From: Scott Mann Date: Fri, 7 Nov 2014 19:02:09 -0800 Subject: Build: Add support for shared libraries and versioning. These changes allow for the building of shared libraries by providing the --enable-shared option to configure. In particular, lib/libopenvwitch.so, lib/libsflow.so, ofproto/libofproto.so, and ovsdb/libovsdb.so will be built. Original behavior of building static remains the same. Additionally, versioning is introduced to each of the libraries objects paving the way for APIs to be built around them. A detailed comment outlining the rules for changing a version number is provided in configure.ac. Note that at this time, the version number is set to 1.0.0, no API is specified yet, and there are no requirements to maintain any sort of compatibility in any of the libraries. Signed-off-by: Scott Mann Signed-off-by: Ben Pfaff --- ovsdb/automake.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ovsdb/automake.mk') diff --git a/ovsdb/automake.mk b/ovsdb/automake.mk index 00a0b01ba..7a8d7d241 100644 --- a/ovsdb/automake.mk +++ b/ovsdb/automake.mk @@ -1,6 +1,8 @@ # libovsdb lib_LTLIBRARIES += ovsdb/libovsdb.la -ovsdb_libovsdb_la_LDFLAGS = -release $(VERSION) +ovsdb_libovsdb_la_LDFLAGS = \ + -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ + -Wl,--version-script=$(top_builddir)/ovsdb/libovsdb.sym ovsdb_libovsdb_la_SOURCES = \ ovsdb/column.c \ ovsdb/column.h \ -- cgit v1.2.1