diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-11-01 20:22:32 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2017-11-19 20:16:50 +0000 |
commit | 262a84c384353b2a88a6e81cdc499ab94a8316c2 (patch) | |
tree | 759ed52d7d81ce9e5ef21e338d235f94f53d77b0 /plugins | |
parent | 61bd626d5d10a7cd0e2dac667bbb262452fe906f (diff) |
Fix (and chop) static build option
This sets the scope of the static build option to Wireshark support
libraries only.
Before the patch:
Static plugins don't work with CMake and autotools.
autotools static build is broken, and most likely will always be, as
building Wireshark all-static is difficult and time-consuming.
After the patch:
For CMake Wireshark will be built with static or shared libraries and
dynamic plugins. Everything just works. CMake apparently doesn't want
you building static and shared libraries at the same time.
For autotools Wireshark will be built with shared libraries by default.
--disable-shared and --enable-static options work as usual. Dlopened
plugins are not built if --disable-shared is given to configure (to
disable shared libraries). This is a limitations imposed by libtool.
Tested on Linux. This removes broken support for building plugins
statically.
Change-Id: Ib8e8176976f136eea93a2ce8f9857b6cf9bec64c
Reviewed-on: https://code.wireshark.org/review/24241
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mate/mate.h | 4 | ||||
-rw-r--r-- | plugins/stats_tree/stats_tree_plugin.c | 3 |
2 files changed, 0 insertions, 7 deletions
diff --git a/plugins/mate/mate.h b/plugins/mate/mate.h index 1d97ca85bb..48999114ab 100644 --- a/plugins/mate/mate.h +++ b/plugins/mate/mate.h @@ -28,12 +28,8 @@ #include "config.h" -#ifndef ENABLE_STATIC #include "moduleinfo.h" #include <gmodule.h> -#else -#include <glib.h> -#endif #include <stdio.h> #include <string.h> diff --git a/plugins/stats_tree/stats_tree_plugin.c b/plugins/stats_tree/stats_tree_plugin.c index da08bba51e..b2d685e332 100644 --- a/plugins/stats_tree/stats_tree_plugin.c +++ b/plugins/stats_tree/stats_tree_plugin.c @@ -21,7 +21,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef ENABLE_STATIC #include "config.h" #include <gmodule.h> @@ -42,8 +41,6 @@ WS_DLL_PUBLIC_DEF void plugin_register_tap_listener(void) register_pinfo_stat_trees(); } -#endif - /* * Editor modelines - http://www.wireshark.org/tools/modelines.html * |