1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-19 23:28:29 +02:00

toolchain/gdb: fix broken configure test for ELF support

A missing #include was causing gdb on macOS to be compiled without ELF support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2021-05-17 17:16:56 +02:00
parent d42640e389
commit 3f4b382c3c

View File

@ -0,0 +1,20 @@
--- a/gdb/configure
+++ b/gdb/configure
@@ -16818,6 +16818,7 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdlib.h>
+#include <string.h>
#include "bfd.h"
#include "elf-bfd.h"
--- a/gdb/acinclude.m4
+++ b/gdb/acinclude.m4
@@ -362,6 +362,7 @@ AC_DEFUN([GDB_AC_CHECK_BFD], [
AC_CACHE_CHECK([$1], [$2],
[AC_TRY_LINK(
[#include <stdlib.h>
+ #include <string.h>
#include "bfd.h"
#include "$4"
],