From 305a92c010e157a0ece9d652d139768460814183 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbappai@gmail.com>
Date: Sat, 28 Aug 2021 21:01:14 +0530
Subject: [PATCH 1/3] CMake: Pretend clang is gcc

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a02f11a..abccfed 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -150,6 +150,10 @@ endif(HAVE__MM_MALLOC)
 # backup flags
 set(CMAKE_REQUIRED_FLAGS_SAVE ${CMAKE_REQUIRED_FLAGS})
 
+if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
+  set(CMAKE_COMPILER_IS_GNUCC 1)
+endif()
+
 # Determinate if we are cross-compiling
 if(NOT CMAKE_CROSSCOMPILING)
   if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
-- 
2.33.0

