[Buildroot] [PATCH] package/opencv3: fix CMAKE_CXX_FLAGS

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Sep 30 08:10:34 UTC 2016


Hello,

On Thu, 29 Sep 2016 09:14:41 -0700, Max Filippov wrote:

> > There is something fishy going on here. Indeed,
> > support/misc/toolchainfile.cmake.in contains:
> >
> >   set(CMAKE_CXX_FLAGS "@@TARGET_CXXFLAGS@@ ${CMAKE_CXX_FLAGS}" CACHE STRING "Buildroot CXXFLAGS")
> >
> > So it should normally always prefix CMAKE_CXX_FLAGS with
> > TARGET_CXXFLAGS. Can you check the toolchain.cmake file that gets
> > generated during your build? Does it contains the Xtensa specific
> > CXXFLAGS ?  
> 
> Yes, it does.

So if it does, why is your patch necessary? I'm not following here.

Do you mean that the Xtensa-specific flags are present in the
toolchain.cmake file, but are in the end not used during the build ?

> opencv2 which has similar cmake build system but doesn't pass
> -DCMAKE_CXX_FLAGS builds correctly.

OK.

Samuel, can you advise here?

Thanks!

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


More information about the buildroot mailing list