pkg-cmake.mk: set CMAKE_SYSROOT variable in toolchainfile.cmake
authorSamuel Martin <s.martin49@gmail.com>
Wed, 17 Aug 2016 21:19:36 +0000 (23:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 18 Aug 2016 20:27:19 +0000 (22:27 +0200)
commite8c3755676111dbd5c45d556da7982993e33e227
tree84031a0610cb494a462af0d211b3aeb43feddf22
parentb0f0367d3a31fd86fd44075f44cca0ca654c3cd7
pkg-cmake.mk: set CMAKE_SYSROOT variable in toolchainfile.cmake

This change enforces the CMAKE_SYSROOT value set in the toolchainfile.cmake.

This fix overrides the CMake heuristics used to guess it, and turns off some
non-desirable behavior adding "-isystem ..." flags to the compiler command
line, misleading the compiler and making the build failed due to some
unfound standard headers.

Fixes:
  http://autobuild.buildroot.net/results/f7e/f7e92678e91a6cb15ccf32d4a7d75b39f49d6000/defconfig
  (and others)

Cc: Ben Boeckel <mathstuf@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/misc/toolchainfile.cmake.in