| From f55f9bf6d9201169d2e5d3782068b03ff17dec90 Mon Sep 17 00:00:00 2001 |
| From: Thomas Devoogdt <thomas.devoogdt@barco.com> |
| Date: Wed, 1 Feb 2023 11:26:56 +0100 |
| Subject: [PATCH] lib: c-ares: fixup static_assert |
| |
| "undefined reference to 'static_assert'" |
| |
| Not defined when using uClibc or if not C++ >= 11. |
| |
| upstream: https://github.com/c-ares/c-ares/issues/504 |
| |
| Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com> |
| --- |
| lib/c-ares-1.19.0/configure | 4 ++++ |
| lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4 | 3 +++ |
| 2 files changed, 7 insertions(+) |
| |
| diff --git a/lib/c-ares-1.19.0/configure b/lib/c-ares-1.19.0/configure |
| index 4c5e1a966..58712ec34 100755 |
| --- a/lib/c-ares-1.19.0/configure |
| +++ b/lib/c-ares-1.19.0/configure |
| @@ -6317,6 +6317,8 @@ else $as_nop |
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| /* end confdefs.h. */ |
| |
| +#define static_assert _Static_assert |
| + |
| template <typename T> |
| struct check |
| { |
| @@ -6394,6 +6396,8 @@ else $as_nop |
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| /* end confdefs.h. */ |
| |
| +#define static_assert _Static_assert |
| + |
| template <typename T> |
| struct check |
| { |
| diff --git a/lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4 b/lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4 |
| index 229de3091..fe4a11c67 100644 |
| --- a/lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4 |
| +++ b/lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4 |
| @@ -37,6 +37,9 @@ |
| #serial 9 |
| |
| m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[ |
| + |
| +#define static_assert _Static_assert |
| + |
| template <typename T> |
| struct check |
| { |
| -- |
| 2.34.1 |
| |