On 28.02.22 06:40, Hongzhan Chen wrote:
> Add c++ build support or use specific c++ compiler
> 
> Signed-off-by: Hongzhan Chen <[email protected]>
> ---
>  configure.ac | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index 0389cf008..16cffd8f8 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -79,6 +79,18 @@ AC_ARG_WITH(cc,
>      ])
>  AC_PROG_CC
>  
> +AC_ARG_WITH(cxx,
> +    AS_HELP_STRING([--with-cxx=compiler],[use specific C++ compiler]),
> +    [
> +     case "$withval" in
> +     "" | y | ye | yes | n | no)
> +         AC_MSG_ERROR([You must supply an argument to --with-cxx])
> +       ;;
> +     esac
> +     CXX="$withval"
> +    ])
> +AC_PROG_CXX
> +
>  # Do not let autoconf set the default value of CFLAGS
>  if $XENO_EMPTY_CFLAGS; then
>       CFLAGS=""

Will that make a C++ compiler mandatory for the build? Or only when
pulling in KernelShark support?

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux

Reply via email to