Quellcode durchsuchen

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

Yao Wei Tjong 姚伟忠 vor 9 Jahren
Ursprung
Commit
6e0a447ebb
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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
     if (RPI)
         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 ()
         find_package (OpenGL REQUIRED)
         include_directories (${OpenGL_INCLUDE_DIRS})