[Buildroot] Remaining kmsxx build issue

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Aug 26 19:42:08 UTC 2016


Hello,

On Fri, 26 Aug 2016 21:30:09 +0200, Arnout Vandecappelle wrote:

>  I also can't reproduce on my laptop, unless when I remove /usr/bin/gcc-ar :-)
> 
>  This piece of code is obviously broken. Unfortunately, I'm not sure how to fix
> it. Replace gcc-ar with ${CMAKE_C_COMPILER}-ar ? But that doesn't work if
> BR2_CCACHE=y... Symlink gcc-ar -> cross-gcc-ar in host/usr/bin? But that could
> create a discrepancy between the host gcc's LTO tools and the cross-tools.
> 
>  Oh, hang on, some genius moved the ccache support to the toolchain wrapper, so
> ${CMAKE_C_COMPILER}-ar might actually work... Let me try that...

Shouldn't instead this CMakeLists.txt allow to override the gcc-ar and
gcc-ranlib path using variables, like CMake normally does for the C and
C++ compilers with CMAKE_C_COMPILER and CMAKE_CXX_COMPILER ?

Samuel ?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list