lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230524082407.onank3xhtd35vmc6@lion.mk-sys.cz>
Date: Wed, 24 May 2023 10:24:07 +0200
From: Michal Kubecek <mkubecek@...e.cz>
To: Dario Binacchi <dario.binacchi@...rulasolutions.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH ethtool] Require a compiler with support for C++11
 features

On Tue, May 23, 2023 at 07:19:08PM +0200, Dario Binacchi wrote:
> Just like the kernel, which has been using -std=gnu11 for about a year,
> we also require a C11 compiler for ethtool.
> 
> The addition of m4 macros allows the package to be compiled even if they
> are not present in the autoconf-archive.
> 
> Signed-off-by: Dario Binacchi <dario.binacchi@...rulasolutions.com>
> ---
> +# SYNOPSIS
> +#
> +#   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
> +#
> +# DESCRIPTION
> +#
> +#   Check for baseline language coverage in the compiler for the specified
> +#   version of the C++ standard.  If necessary, add switches to CXX and
> +#   CXXCPP to enable support.  VERSION may be '11', '14', '17', or '20' for
> +#   the respective C++ standard version.

Is this the correct macro? We need C compiler, not C++, so we probably
rather need something like AX_CHECK_COMPILE_FLAG().

Or maybe even that is an overkill and just AC_COMPILE_IFELSE() with an
empty source and enforced "-std=c11" in CFLAGS might suffice.

Michal

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ