ibgd: avoid using host headers 10079/head
authorAlexander Ryzhov <github@ryzhov-al.ru>
Thu, 26 Sep 2019 10:39:53 +0000 (13:39 +0300)
committerAlexander Ryzhov <github@ryzhov-al.ru>
Thu, 26 Sep 2019 10:42:11 +0000 (13:42 +0300)
Signed-off-by: Alexander Ryzhov <github@ryzhov-al.ru>
libs/libgd/patches/220-exclude_host_headers.patch [new file with mode: 0644]

diff --git a/libs/libgd/patches/220-exclude_host_headers.patch b/libs/libgd/patches/220-exclude_host_headers.patch
new file mode 100644 (file)
index 0000000..a1571dd
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -89,8 +89,6 @@
+       GV_LT(VERSION GDLIB_LIB_VERSION)
+       MESSAGE(STATUS "gd shared lib version ${GDLIB_LIB_SOVERSION} (${GDLIB_LIB_VERSION})")
+-      SET(CMAKE_REQUIRED_INCLUDES "/usr/include" "/usr/local/include")
+-
+       include(CheckIncludeFiles)
+       include(CheckIncludeFile)