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 /source/blender/blenlib/CMakeLists.txt | |
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 'source/blender/blenlib/CMakeLists.txt')
-rw-r--r-- | source/blender/blenlib/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt index 1e4e07d63b3..1de0c192a20 100644 --- a/source/blender/blenlib/CMakeLists.txt +++ b/source/blender/blenlib/CMakeLists.txt @@ -277,6 +277,12 @@ if(WIN32) ) endif() +if(UNIX AND NOT APPLE) + list(APPEND LIB + bf_intern_libc_compat + ) +endif() + # no need to compile object files for inline headers. set_source_files_properties( intern/math_base_inline.c |