[PATCH] CMake: add support for GNU/Hurd
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 21 Nov 2021 07:59:56 +0000 (08:59 +0100)
committerPatrick Franz <deltaone@debian.org>
Sat, 1 Oct 2022 16:58:47 +0000 (17:58 +0100)
commitb772374c7c996cba6d253e8e7ed51d92d7f6dd7d
treed8c14f0ce023086582c4508ec2bbce54d7948166
parented27749d63788436d2e9fa280a99bcf8285e7a6b
[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