diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-08-19 14:25:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-19 14:25:28 +0200 |
| commit | 62ad09fe02c4a67e727822134768e4ebe6c8cde4 (patch) | |
| tree | 9eceacdf5853933ddce244a93d35bf1e6bea3adb /src/lib_proj.cmake | |
| parent | e1dc2d5516562c2e6e9668325d897c0eccdc6d2a (diff) | |
| download | PROJ-62ad09fe02c4a67e727822134768e4ebe6c8cde4.tar.gz PROJ-62ad09fe02c4a67e727822134768e4ebe6c8cde4.zip | |
Revert compiler generated Fused Multiply Addition optimized routines (#2327)
Fixes #2326
Partially reverts commit b84c9d0cb61f3bd561da6092e15e294ae7e410e0 to
remove the use of the gcc 6 mechanism of generated multiple versions of
functions with different optimization flags, which was found to causes
crashes when dlopen'ing PROJ on CentOS 7.8 with gcc 8.3.1
Diffstat (limited to 'src/lib_proj.cmake')
| -rw-r--r-- | src/lib_proj.cmake | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib_proj.cmake b/src/lib_proj.cmake index 59cb9572..3d41fe9a 100644 --- a/src/lib_proj.cmake +++ b/src/lib_proj.cmake @@ -303,19 +303,6 @@ source_group("CMake Files" FILES CMakeLists.txt) # Embed PROJ_LIB data files location add_definitions(-DPROJ_LIB="${CMAKE_INSTALL_PREFIX}/${DATADIR}") -# The gcc "target_clones" function attribute relies on an extension -# to the ELF standard. It must not be used on MinGW. -include(CheckCXXSourceCompiles) -set(CMAKE_REQUIRED_QUIET TRUE) -check_cxx_source_compiles([[ - __attribute__((target_clones("fma","default"))) - int clonable() { return 0; } - int main() { return clonable(); } -]] TARGET_CLONES_FMA_ALLOWED) -if(TARGET_CLONES_FMA_ALLOWED) - add_definitions(-DTARGET_CLONES_FMA_ALLOWED) -endif() - ################################################# ## targets: libproj and proj_config.h ################################################# |
