https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5349f49cfec9065d804d2…
commit 5349f49cfec9065d804d2f8be31bda1eb337ad5b
Author: Victor Perevertkin <victor(a)perevertkin.ru>
AuthorDate: Thu May 21 01:07:26 2020 +0300
Commit: Victor Perevertkin <victor(a)perevertkin.ru>
CommitDate: Thu May 21 01:07:26 2020 +0300
[SDK][FREETYPE] Fix GCC8.4 -O2 build
---
sdk/lib/3rdparty/freetype/CMakeLists.txt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sdk/lib/3rdparty/freetype/CMakeLists.txt
b/sdk/lib/3rdparty/freetype/CMakeLists.txt
index f14ed5c47f5..d2d87133831 100644
--- a/sdk/lib/3rdparty/freetype/CMakeLists.txt
+++ b/sdk/lib/3rdparty/freetype/CMakeLists.txt
@@ -60,6 +60,8 @@ list(APPEND SOURCE
add_library(freetype ${SOURCE})
-if(USE_CLANG_CL)
- target_compile_options(freetype PRIVATE
"-Wno-tautological-constant-compare")
+if(GCC)
+ target_compile_options(freetype PRIVATE -fno-builtin-malloc)
+elseif(CLANG)
+ target_compile_options(freetype PRIVATE -Wno-tautological-constant-compare)
endif()