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 /extcap | |
parent | 61bd626d5d10a7cd0e2dac667bbb262452fe906f (diff) | |
download | wireshark-262a84c384353b2a88a6e81cdc499ab94a8316c2.tar.gz wireshark-262a84c384353b2a88a6e81cdc499ab94a8316c2.tar.bz2 wireshark-262a84c384353b2a88a6e81cdc499ab94a8316c2.zip |
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 'extcap')
-rw-r--r-- | extcap/Makefile.am | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/extcap/Makefile.am b/extcap/Makefile.am index 9d30dc1c53..7784e414cb 100644 --- a/extcap/Makefile.am +++ b/extcap/Makefile.am @@ -27,12 +27,6 @@ androiddump_SOURCES = \ androiddump.c \ extcap-base.c -if ENABLE_STATIC -androiddump_LDFLAGS = -Wl,-static -all-static -else -androiddump_LDFLAGS = -export-dynamic -endif - # Libraries and plugin flags with which to link androiddump. androiddump_LDADD = \ ../ui/libui.a \ @@ -44,12 +38,6 @@ randpktdump_SOURCES = \ randpktdump.c \ extcap-base.c -if ENABLE_STATIC - randpktdump_LDFLAGS = -Wl,-static -all-static -else - randpktdump_LDFLAGS = -export-dynamic -endif - # Libraries and plugin flags with which to link randpktdump. randpktdump_LDADD = \ ../randpkt_core/librandpkt_core.a \ @@ -63,12 +51,6 @@ sshdump_SOURCES = \ extcap-base.c \ ssh-base.c -if ENABLE_STATIC - sshdump_LDFLAGS = -Wl,-static -all-static -else - sshdump_LDFLAGS = -export-dynamic -endif - # Libraries and plugin flags with which to link sshdump. sshdump_LDADD = \ ../wiretap/libwiretap.la \ @@ -81,12 +63,6 @@ ciscodump_SOURCES = \ extcap-base.c \ ssh-base.c -if ENABLE_STATIC - ciscodump_LDFLAGS = -Wl,-static -all-static -else - ciscodump_LDFLAGS = -export-dynamic -endif - # Libraries and plugin flags with which to link ciscodump. ciscodump_LDADD = \ ../writecap/libwritecap.a \ @@ -98,12 +74,6 @@ udpdump_SOURCES = \ udpdump.c \ extcap-base.c -if ENABLE_STATIC - udpdump_LDFLAGS = -Wl,-static -all-static -else - udpdump_LDFLAGS = -export-dynamic -endif - # Libraries and plugin flags with which to link udpdump. udpdump_LDADD = \ ../writecap/libwritecap.a \ |