[PATCH] CMake: add support for GNU/Hurd
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 21 Nov 2021 07:59:56 +0000 (08:59 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Fri, 19 Aug 2022 01:08:54 +0000 (02:08 +0100)
commite383917f6c47ddee9ea672277df4974b8b9d2656
tree7f626f6a264c4cf6f313cdc38aabb5d9f46dc07f
parenta3f3a5c6df47774652bb2e61bf132e149947cd97
[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