wireshark/cmake
João Valverde 262a84c384 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>
2017-11-19 20:16:50 +00:00
..
modules Fix (and chop) static build option 2017-11-19 20:16:50 +00:00
TestFileOffsetBits.c cmake: Detect proper large file defines even with -Wno-error 2016-06-16 04:02:43 +00:00
TestLargeFiles.c.cmakein cmake: Detect proper large file defines even with -Wno-error 2016-06-16 04:02:43 +00:00
TestWindowsFSeek.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00