Amends commit 19b7f854a274812d9c95fc7aaf134a12530c105f, which removed the __PIE__ check because of the GCC version check that was alongside. GCC and Clang define both __PIE__ and __PIC__ for -fPIE, so checking for __PIC__'s presence isn't enough. Drive-by amend the no-PIC #error message to also suggest -DFEATURE_no_direct_extern_access=ON, which is more modern and produces better code for executables too. Because of that, I've also changed the reduce_relocations option to the CMake one, as there is no configure- style equivalent for the modern option. Pick-to: 6.8 6.5 Fixes: QTBUG-133101 Change-Id: I957b264eaee360fd964afffd60617964b26fe934 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 014e77801fa4b99cdb03330ccce1e212ac13a0af) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%