Olivier Biot wrote:
From: Guy Harris
| Speaking of Windows builds:
|
| 1) For MSVC++ builds, can we get rid of the plugin API table by
| just having libethereal export the functions in question and
| linking the plugins against libethereal (or a .lib for
| libethereal)?
The plugins export functions, too. If we make libethereal just exporting
the necessary functions and make the plugins link with libethereal via
an import library, we will have to find a way to make formerly exported
functions of the plugins available to libethereal.
Because MSVC doesn't allow to build a non self contained dll you cannot
easily create two libraries with each of them having dependencies on the
other. :(
That was the way it has been done in order to make Ethereal build
*with plugins* in a cygwin environment (with all the required
autotools).
Are you sure that cygwin builds without the plugin api table?
| 2) If so, what would we do to make that work for MinGW and
| Cygwin builds (assuming the latter don't already work
| courtesy of libtool)?
The cygwin builds work this way: -L../../epan -lethereal does this.
plugins/acn/Makefile.am:
acn_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/artnet/Makefile.am:
artnet_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/asn1/Makefile.am:
asn1_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/ciscosm/Makefile.am:
ciscosm_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/docsis/Makefile.am:
docsis_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/enttec/Makefile.am:
enttec_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/giop/Makefile.am:
cosnaming_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
coseventcomm_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/gryphon/Makefile.am:
gryphon_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/irda/Makefile.am:
irda_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/lwres/Makefile.am:
lwres_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/megaco/Makefile.am:
megaco_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/mgcp/Makefile.am:
mgcp_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/pcli/Makefile.am:
pcli_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/rdm/Makefile.am:
rdm_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/rlm/Makefile.am:
rlm_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/rtnet/Makefile.am:
rtnet_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/rudp/Makefile.am:
rudp_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
plugins/v5ua/Makefile.am:
v5ua_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@
Maybe we should replace the plugin LIBADD entries with an automake
macro @PLUGIN_LIBADD@ which we define in the top-level configure.in?
Regards,
Olivier
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev