[PATCH] Add version info to the shared libs

Mikko Levonmaa mikko.levonmaa at gmail.com
Tue Nov 6 15:57:47 PST 2012


Adds the wayland version information to the shared libraries.
libwayland-server.so.0.0.0 -> libwayland-server.so.1.0.0

Signed-off-by: Mikko Levonmaa <mikko.levonmaa at gmail.com>
---
 src/Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index f93954e..0a799f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -19,6 +19,7 @@ libwayland_util_la_SOURCES =			\
 	wayland-private.h
 
 libwayland_server_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt -lm
+libwayland_server_la_LDFLAGS   = -version-info @WAYLAND_VERSION_MAJOR@:@WAYLAND_VERSION_MINOR@:@WAYLAND_VERSION_MICRO@
 libwayland_server_la_SOURCES =			\
 	wayland-protocol.c			\
 	wayland-server.c			\
@@ -27,6 +28,7 @@ libwayland_server_la_SOURCES =			\
 	event-loop.c
 
 libwayland_client_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt -lm
+libwayland_client_la_LDFLAGS   = -version-info @WAYLAND_VERSION_MAJOR@:@WAYLAND_VERSION_MINOR@:@WAYLAND_VERSION_MICRO@
 libwayland_client_la_SOURCES =			\
 	wayland-protocol.c			\
 	wayland-client.c
-- 
1.7.4.1



More information about the wayland-devel mailing list