summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android-Clang-CXX.cmake
diff options
context:
space:
mode:
authorBjörn Esser <besser82@fedoraproject.org>2022-01-19 16:26:14 (GMT)
committerBjörn Esser <besser82@fedoraproject.org>2022-01-19 19:47:38 (GMT)
commit6a0ce19ce1cb594cdec19bacc9fc7a38156e38da (patch)
tree29ae61eac7c12bbb307fae53df316eccc45a3e9d /Modules/Platform/Android-Clang-CXX.cmake
parentd79c40b1d5c189b9e2f3948993de7081fe44d647 (diff)
downloadCMake-6a0ce19ce1cb594cdec19bacc9fc7a38156e38da.zip
CMake-6a0ce19ce1cb594cdec19bacc9fc7a38156e38da.tar.gz
CMake-6a0ce19ce1cb594cdec19bacc9fc7a38156e38da.tar.bz2
FortranCInterface: Fix compatibility with GCC gfortran 12 LTO
Since version 12.0 the GCC Fortran compiler has implemented "WG5/N1942", which causes, if link-time opmization is enabled, obfuscation of hard-coded string values in the compiler objects and its resulting ELF-binaries. This causes the CMake-internal detection of the mangling scheme for the naming of subroutines to fail. Thus we must ensure to have any link-time optimization features to be disabled on the executable file we perform the detection on. The static libraries, however, must be build with LTO and non-LTO objects, as that will ensure the verify step will operate on IPO objects, if building those is requested by the system compiler flags. Fixes: #23123 Signed-off-by: Björn Esser <besser82@fedoraproject.org>
Diffstat (limited to 'Modules/Platform/Android-Clang-CXX.cmake')
0 files changed, 0 insertions, 0 deletions