summaryrefslogtreecommitdiff
path: root/ovsdb/automake.mk
diff options
context:
space:
mode:
authorScott Mann <smann@noironetworks.com>2014-11-07 19:02:09 -0800
committerBen Pfaff <blp@nicira.com>2014-11-11 22:08:41 -0800
commit7f2f24e379d9ca65c20d072a6c0adb1c6c8a9cce (patch)
tree2f5160c7e2667271a001f63c63ca41aa5c752b24 /ovsdb/automake.mk
parent86f35fb5c6117f2482e91776e7c5fe71668720fb (diff)
downloadopenvswitch-7f2f24e379d9ca65c20d072a6c0adb1c6c8a9cce.tar.gz
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 <smann@noironetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ovsdb/automake.mk')
-rw-r--r--ovsdb/automake.mk4
1 files changed, 3 insertions, 1 deletions
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 \