diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2013-12-13 18:54:28 +0100 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-12-17 16:30:32 -0800 |
commit | 38b7a52b618b98f03f089d0dff4050ec76fd06d4 (patch) | |
tree | 325b453ce25ca88dddd57a8b0b3a794ad201c2cd /configure.ac | |
parent | 45ebaaf58c8dd017b5ba6a1ea18b77b8760a41e8 (diff) | |
download | openvswitch-38b7a52b618b98f03f089d0dff4050ec76fd06d4.tar.gz |
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 <helmut.schaa@googlemail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 05b7082ab..8ddc1f9bb 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,6 @@ AM_INIT_AUTOMAKE AC_PROG_CC AM_PROG_CC_C_O AC_PROG_CPP -AC_PROG_RANLIB AC_PROG_MKDIR_P AC_PROG_FGREP AC_PROG_EGREP @@ -41,6 +40,7 @@ AC_USE_SYSTEM_EXTENSIONS AC_C_BIGENDIAN AC_SYS_LARGEFILE +LT_INIT([disable-shared]) AC_SEARCH_LIBS([pow], [m]) AC_SEARCH_LIBS([clock_gettime], [rt]) AC_SEARCH_LIBS([timer_create], [rt]) |