diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-05-17 17:16:56 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-05-18 12:52:52 +0200 |
commit | 3f4b382c3cbcb9ae3e2ecce781a766af927d2791 (patch) | |
tree | a9138781e1ed8c876068f56d8c3a0036a7e77ac8 /toolchain/gdb/patches | |
parent | d42640e389a8b22a31fb0061c12cd9dfbddb87b8 (diff) | |
download | openwrt-3f4b382c3cbcb9ae3e2ecce781a766af927d2791.tar.gz openwrt-3f4b382c3cbcb9ae3e2ecce781a766af927d2791.tar.bz2 openwrt-3f4b382c3cbcb9ae3e2ecce781a766af927d2791.zip |
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>
Diffstat (limited to 'toolchain/gdb/patches')
-rw-r--r-- | toolchain/gdb/patches/100-fix-elf-support-check.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/toolchain/gdb/patches/100-fix-elf-support-check.patch b/toolchain/gdb/patches/100-fix-elf-support-check.patch new file mode 100644 index 0000000000..fe612c38db --- /dev/null +++ b/toolchain/gdb/patches/100-fix-elf-support-check.patch @@ -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" + ], |