tce-load -i compiletc perl5 python3.6 gnutls35-dev libgcrypt-dev gtk3-dev libpcap-dev liblz4-dev lua-5.3-dev sbc-dev c-ares-dev

https://www.wireshark.org/download/src/all-versions/wireshark-2.6.14.tar.xz

cd wireshark-2.6.14

patch -Np1 -i ../wireshark-2.2.1-lua_5_3_1-1.patch

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --with-gtk=3

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make [13m 51.78s]
sudo make install

  CPPFLAGS: -D_FORTIFY_SOURCE=2 

  CFLAGS: -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wc++-compat -Wunused-const-variable -Wshadow -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Werror=implicit -fexcess-precision=fast -fvisibility=hidden -g -O2

  CXXFLAGS: -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -fexcess-precision=fast -fvisibility=hidden -g -O2

  LDFLAGS: -Wl,--as-needed 

  LIBS: -llua -lz -lm 

The Wireshark package has been configured with the following options:
                       GLib version : v2.60.6
                    Build wireshark : no
                Build wireshark-gtk : yes (with GTK+ v3.22.30)
                       Build tshark : yes
                      Build tfshark : no
                     Build capinfos : yes
                      Build captype : yes
                      Build editcap : yes
                      Build dumpcap : yes
                     Build mergecap : yes
                   Build reordercap : yes
                    Build text2pcap : yes
                      Build randpkt : yes
                       Build dftest : yes
                     Build rawshark : yes
                       Build sharkd : yes
                    Build fuzzshark : yes
                  Build androiddump : yes
                      Build sshdump : no
                    Build ciscodump : no
                  Build randpktdump : yes
                      Build udpdump : yes
          Build MaxMind DB resolver : no
                 Build User's Guide : no

    Save files as pcapng by default : yes
  Install dumpcap with capabilities : no
             Install dumpcap setuid : no
                  Use dumpcap group : (none)
                        Use plugins : yes
                    Use Lua library : yes
                Build Qt RTP player : no
              Build GTK+ RTP player : no
                   Use pcap library : yes
                   Use zlib library : yes
               Use kerberos library : no
                 Use c-ares library : yes
                Use SMI MIB library : no
             Use GNU gcrypt library : yes
                 Use GnuTLS library : yes
     Use POSIX capabilities library : yes
                 Use libssh library : no
                     Use nl library : yes (v3)
              Use SBC codec library : yes
                Use SpanDSP library : no
                 Use bcg729 library : no
                Use libxml2 library : yes
                Use nghttp2 library : no
                    Use LZ4 library : yes
                 Use Snappy library : no