diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-02-25 15:05:09 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-02-26 20:13:14 +0300 |
commit | 22abc7f0808835d88ea244a1129ae4e98d87dc3b (patch) | |
tree | 58384291348714442eefd0d8ec557776ae84f4ec /build_files | |
parent | 30b3bf2b5779b82bac146913b2066001ef9c7089 (diff) |
Build: add compatibility between precompiled libraries and new glibc
On Linux, precompiled libraries may be made with a glibc version that is
incompatible with the system libraries that Blender is built on. To solve
this we add a few -ffast-math symbols that can be missing.
Differential Revision: https://developer.blender.org/D6930
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/Modules/GTestTesting.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build_files/cmake/Modules/GTestTesting.cmake b/build_files/cmake/Modules/GTestTesting.cmake index 3f3aa4f374b..04e1670aef6 100644 --- a/build_files/cmake/Modules/GTestTesting.cmake +++ b/build_files/cmake/Modules/GTestTesting.cmake @@ -63,6 +63,9 @@ macro(BLENDER_SRC_GTEST_EX) if(WITH_OPENMP_STATIC) target_link_libraries(${TARGET_NAME} ${OpenMP_LIBRARIES}) endif() + if(UNIX AND NOT APPLE) + target_link_libraries(${TARGET_NAME} bf_intern_libc_compat) + endif() get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(GENERATOR_IS_MULTI_CONFIG) |