Explorar o código

Break fix for SDL library build when using Raspbian Jessie.
[ci only: RPI] [skip appveyor]

Yao Wei Tjong 姚伟忠 %!s(int64=9) %!d(string=hai) anos
pai
achega
6e0a447ebb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Source/ThirdParty/SDL/CMakeLists.txt

+ 2 - 0
Source/ThirdParty/SDL/CMakeLists.txt

@@ -83,6 +83,8 @@ else ()
     # On Linux, make sure development libraries exist, and use their include file directories
     # On Linux, make sure development libraries exist, and use their include file directories
     if (RPI)
     if (RPI)
         file (GLOB VIDEO_DRIVER_C_FILES src/video/raspberry/*.c src/core/linux/*.c)
         file (GLOB VIDEO_DRIVER_C_FILES src/video/raspberry/*.c src/core/linux/*.c)
+        # Break fix to support building SDL on Raspbian Jessie - the __USE_EXTERN_INLINE is defined in Jessie causing stdlib.h to look for bits/stdlib-bsearch.h which is not in the default include search path
+        include_directories (${SYSROOT}/usr/include/arm-linux-gnueabihf)    # This should work for native build as well because SYSROOT variable is empty when not cross-compiling
     else ()
     else ()
         find_package (OpenGL REQUIRED)
         find_package (OpenGL REQUIRED)
         include_directories (${OpenGL_INCLUDE_DIRS})
         include_directories (${OpenGL_INCLUDE_DIRS})