From 38b7a52b618b98f03f089d0dff4050ec76fd06d4 Mon Sep 17 00:00:00 2001 From: Helmut Schaa Date: Fri, 13 Dec 2013 18:54:28 +0100 Subject: openvswitch: Use libtool and allow building shared libs Currently openvswitch builds all libraries static only. However, libopenvswitch is linked into nearly all openvswitch executables making it hardly possible to run openvswitch on embedded devices (for example running OpenWrt). Convert openvswitch to use libtool for building its internal libs. This allows "--enable-shared" and "--enable-static" as configure arguments. Default is "--disable-shared" thus keeping the current behavior with the only change that static libs are installed by "make install". Since the openvswitch library interfaces are internal and thus not stable (yet) encode the openvswitch version into the library name: libopenvswitch-2.0.90.so Binary size is reduced to around 1/3 when using shared libs. Signed-off-by: Helmut Schaa Signed-off-by: Ben Pfaff --- vtep/automake.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vtep/automake.mk') diff --git a/vtep/automake.mk b/vtep/automake.mk index 6e89a0577..008f5b435 100644 --- a/vtep/automake.mk +++ b/vtep/automake.mk @@ -11,7 +11,7 @@ man_MANS += \ vtep/vtep-ctl.8 vtep_vtep_ctl_SOURCES = vtep/vtep-ctl.c -vtep_vtep_ctl_LDADD = lib/libopenvswitch.a $(SSL_LIBS) +vtep_vtep_ctl_LDADD = lib/libopenvswitch.la $(SSL_LIBS) # ovs-vtep scripts_SCRIPTS += \ -- cgit v1.2.1