diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-27 07:16:03 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-01 11:12:12 +0000 |
commit | 232f97405a3e69cf9e54d4de0a8f1593da747603 (patch) | |
tree | 7217f2eb957eb3c5f7f2d0e4ff6fafc11980f840 /meta/recipes-connectivity/kea/files/0001-ax_cpp11.m4-Include-memory-header.patch | |
parent | 5537ad961e5d0663c2d293abe8312bd2b614d9ff (diff) | |
download | openembedded-core-contrib-232f97405a3e69cf9e54d4de0a8f1593da747603.tar.gz |
kea: Fix configure test error with gcc11
Since the test program fails to compile, configure thinks compiler is
not having thread support and bails out
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/kea/files/0001-ax_cpp11.m4-Include-memory-header.patch')
-rw-r--r-- | meta/recipes-connectivity/kea/files/0001-ax_cpp11.m4-Include-memory-header.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/kea/files/0001-ax_cpp11.m4-Include-memory-header.patch b/meta/recipes-connectivity/kea/files/0001-ax_cpp11.m4-Include-memory-header.patch new file mode 100644 index 0000000000..4978cae87c --- /dev/null +++ b/meta/recipes-connectivity/kea/files/0001-ax_cpp11.m4-Include-memory-header.patch @@ -0,0 +1,24 @@ +From 5314a4815006e3a42f3ce265d1597db700cdb784 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Fri, 26 Feb 2021 23:14:20 -0800 +Subject: [PATCH] ax_cpp11.m4: Include <memory> header + +This is needed for std::shared_ptr +GCC-11 throws errors if header is not included + +Upstream-Status: Submitted [https://github.com/isc-projects/kea/pull/120] +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + m4macros/ax_cpp11.m4 | 1 + + 1 file changed, 1 insertion(+) + +--- a/m4macros/ax_cpp11.m4 ++++ b/m4macros/ax_cpp11.m4 +@@ -182,6 +182,7 @@ for retry in "none" "--std=c++11" "--std + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [#include <thread> ++ #include <memory> + std::shared_ptr<std::thread> th;], + [th.reset(new std::thread([[]]() { return; })); + th->join();])], |