qt5base-lts/config.tests/direct_extern_access
Thiago Macieira fdd7227c67 CMake: Test the linker too for -mno-direct-extern-access
The GNU binutils ld linker needed a patch after the tagging of 2.38 to
make the new feature work. Before this patch, the linker will fail to
link when protected visibility symbols are used in the library, so don't
enable the feature unless the linker is recent enough.

GNU binutils gold from that version passes this test.

LLVM lld is unknown (I didn't test), but LLVM was consulted in
developing the feature.

Fixes: QTBUG-103493
Change-Id: Ibcde9b9795ad42ac9978fffd16f1c80ca20953ff
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-05-25 16:29:31 -07:00
..
CMakeLists.txt CMake: Test the linker too for -mno-direct-extern-access 2022-05-25 16:29:31 -07:00
lib.cpp CMake: Test the linker too for -mno-direct-extern-access 2022-05-25 16:29:31 -07:00
lib.h CMake: Test the linker too for -mno-direct-extern-access 2022-05-25 16:29:31 -07:00
main.cpp CMake: Test the linker too for -mno-direct-extern-access 2022-05-25 16:29:31 -07:00