[PATCH] CMake: add support for GNU/Hurd
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 21 Nov 2021 07:59:56 +0000 (08:59 +0100)
committerPino Toscano <pino@debian.org>
Sat, 3 Sep 2022 06:15:09 +0000 (07:15 +0100)
commitfddf0ea30e4f9eea23e6423a252be931e726c94c
tree9262fc2f6f2cb2f3104bfb69d41939706e01a92d
parent158ff81b4dd5adfe01f95de8ef3272b960a2e896
[PATCH] CMake: add support for GNU/Hurd

Add a "HURD" CMake platform specification, so it can be properly
checked in the build system.

Set QT_DEFAULT_MKSPEC to the existing hurd-g++ mkspec.

Hurd supports $ORIGIN in RPATH, so enable it.

Hurd uses X11, so add it to the X11_SUPPORTED list.

Enable few more feature checks that apply to Hurd as well: either
because they are provided by GNU libc itself, or because they are
implemented on Hurd.

Check and set the ELF interpreter, as it is a common functionality of
the GNU toolchain.

Change-Id: Id347033560bbc5a2a4e2c3abb493c948c002b40e
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Gbp-Pq: Name upstream_CMake-add-support-for-GNU-Hurd.patch
cmake/QtBuild.cmake
cmake/QtPlatformSupport.cmake
cmake/QtRpathHelpers.cmake
src/corelib/CMakeLists.txt
src/corelib/configure.cmake
src/gui/configure.cmake