MumbleSSL (defined in SSL.h/.cpp) uses OpenSSL functions - starting with
SSL_library_init. These functions are defined in the ssleay32 library.
This library was missing, which resulted/could result in linker errors
(in specific kinds of build environments).
Patch supplied by Helmut Grohne <helmut@subdivi.de> in Debian bug #919453https://bugs.debian.org/919453
Use set variable PKG_CONIFG to allow calling the pkg-config for the
architecture supplied in the build environment to allow cross building.
Patch supplied by Helmut Grohne <helmut@subdivi.de> in Debian bug #919453https://bugs.debian.org/919453
Instead of calling pkg-config directly, this patch calls pkgConfigExecutable()
from Qt5 to allow setting which pkg-config to be the one the user supplied
for the build to set the architecture to build with.
Qt 5.10 uses features available only on macOS 10.8, such as
std::future<void>.
See the referenced issue for more information.
Fixesmumble-voip/mumble#3288
Shelling out to dpkg-buildflags to get the preferred build flags
is now the way to go on Debian.
Previously, our PPA packages used hardening-wrapper to pass the
proper hardening flags to the package. That package is no longer
available in Debian unstable or Ubuntu zesty. To remedy that situation,
we have to add flags ourselves via dpkg-buildflags.
This commit implements a new CONFIG flag, CONFIG(dpkg-buildflags)
which will query dpkg-buildflags and append the retrieved CFLAGS,
CXXFLAGS, CPPFLAGS and LDFLAGS to QMAKE_CFLAGS, QMAKE_CXXFLAGS,
QMAKE_CPPFLAGS, QMAKE_LDFLAGS to ensure they are used in the Mumble
build.
This introduces a protobuf.pri helper that .pro files can include to
depend on protobuf.
Including protobuf.pri will link against the protobuf library, and include
the proper headers.
The MinGW PR changed MUMBLE_ARCH to use QT_ARCH on Qt 5.
However, QT_ARCH uses 'i386' for 32-bit x86, we're currently
using 'x86' throughout our .pro files.
To fix this problem, we map 'i386' back to 'x86'.
This is currently breaking the win32-static (x86) build.
This fixes a problem I encountered where including openssl.pri
in TestCryptographicHash.pro on Qt 4 wouldn't link OpenSSL.
This commit fixes that problem by ensuring link_pkgconfig is
always included in CONFIG when openssl.pri uses pkgconfig.