[Buildroot] [PATCH v1] libcdaudio: fix compile on host systems without C++ support

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Jun 23 19:46:05 UTC 2019


On Sun, 13 Jan 2019 22:47:22 +0100
Peter Seiderer <ps.report at gmx.net> wrote:

> Delivered libcdaudio configure tries to run a C++ check with the
> host C preprocessor. Fix it by enabling autoreconf  (needs
> a patch for configure.ac/Makefile.am removing ancient lines).
> 
> Fixes [1]:
> 
>   checking how to run the C++ preprocessor... /lib/cpp
>   configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> 
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>

Contrary to what your commit title says, the problem does not occur
when the host system lacks C++ support, it's when the target toolchain
doesn't have C++ support. I have an Arch Linux system here (which is
where the failure happens), and the host system has C++ support, but
doesn't provide /lib/cpp.

I fixed up the commit title, commit log, and comment in the .mk file
and applied.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list