As Ben pointed out the special segment handling used in vlog and coverage makes the transition to shared libs a bit more difficult.
This series tries to get rid of the special segments that are created for the vlog and coverage implementations. When trying to use libopenvswitch as shared lib this will cause some side-effects since the special segment is created once for each lib and executable. Sending as RFC since this does not work (yet) on MSVC. Helmut Schaa (4): compiler: Add OVS_CONSTRUCTOR to mark functions as init functions vlog: Use OVS_CONSTRUCTOR for vlog initialization coverage: Use OVS_CONSTRUCTOR to initialize the coverage counter array Remove unused USE_LINKER_SECTIONS configure.ac | 1 - lib/automake.mk | 22 ------------------- lib/compiler.h | 4 ++++ lib/coverage.c | 33 ++--------------------------- lib/coverage.h | 28 ++++++++++++------------- lib/vlog.c | 63 ++++++++++++++++++++----------------------------------- lib/vlog.h | 20 +++++++++++------- m4/openvswitch.m4 | 34 ------------------------------ 8 files changed, 55 insertions(+), 150 deletions(-) -- 1.8.1.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev