[ovs-dev] [PATCH 5/6] openvswitch: Use libtool and allow building shared libs

Ben Pfaff blp at nicira.com
Fri Dec 13 17:36:17 UTC 2013


On Fri, Dec 13, 2013 at 06:35:27PM +0100, Helmut Schaa wrote:
> On Fri, Dec 13, 2013 at 6:27 PM, Ben Pfaff <blp at nicira.com> wrote:
> > On Fri, Dec 13, 2013 at 02:05:04PM +0100, Helmut Schaa wrote:
> >> 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.
> >
> > I think there's something missing, because when I do "make dist" and
> > then try to build from the generated tarball, I get:
> >
> > make[2]: *** No rule to make target `ovsdb/libovsdb.a', needed by `tests/test-ovsdb'.
> 
> Sorry about that :( just didn't notice due to all the rebasing.

No worries, it's really easy to miss in this kind of change (which is
why I checked ;-).



More information about the dev mailing list