http://digikam.185.s1.nabble.com/Digikam-GSoC-2021-tp4715320p4715668.html
The way to pass env var to Qt5 configure script is explained in helper doc :
Variables most be passed at end of .configure options, else it do not work.
MGA 7 provide openssl 1.1.0, not 1.1.1, as required to build Qt 5.15.2. this is why openssl is previously build as static library in /opt/openssl/ and env is passed to .configure script like this :
... but definitively, this doesn't work, certainly because .configure script from Qt is buggy :
Checking for OpenSSL...
Trying source 0 (type openssl) of library openssl ...
$OPENSSL_LIBS is not set.
=> source produced no result.
Trying source 1 (type inline) of library openssl ...
=> source failed condition 'config.win32'.
Trying source 2 (type inline) of library openssl ...
=> source failed condition 'config.msvc'.
Trying source 3 (type inline) of library openssl ...
=> source failed condition 'config.android'.
Trying source 4 (type inline) of library openssl ...
Include path \"/opt/openssl/include/\" is invalid.
=> source produced no result.
So :
1/ we cannot remove the system based openssl 1.1.0 as it used by plenty Qt5/KF5/DK dependencies to comple (aka mariabd, ffmpeg,opencv, etc.)
2/ to compile Qt 5.15.2, openssl 1.1.1 is required (too bad). So we need a extra static openssl only for qtbase.
3/ as .configure make a mess, and as i'm tired to waste my time with this archaic build system. I said stop.
4/ as Qt6 will be based on cmake and not qmake/configure
==> we will use Qt 5.15.1 under MGA7, as this version of Qt only require openssl 1.1.0.
And that all.
Gilles Caulier