tools/elfutils: remove no-op copy of tdestroy()
[openwrt/openwrt.git] / tools / elfutils / patches / 100-portability.patch
index 0a3dd63a85f162a570f2ab3a90290049abe1ebd9..9a111c76d9c9fa3fb5b587898559e9619e60c9d9 100644 (file)
  dnl The directories with content.
  
  dnl Documentation.
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -26,11 +26,11 @@ AM_MAKEFLAGS = --no-print-directory
- pkginclude_HEADERS = version.h
--SUBDIRS = config lib libelf libcpu backends libebl libdwelf libdwfl libdw \
--        libasm debuginfod src po doc tests
-+SUBDIRS = libgnu config lib libelf libcpu backends libebl libdwelf libdwfl libdw
- EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING SECURITY \
--           COPYING COPYING-GPLV2 COPYING-LGPLV3
-+           COPYING COPYING-GPLV2 COPYING-LGPLV3 \
-+               m4/gnulib-cache.m4
- # Make sure the test install uses lib64 when $LIB will yield lib64.
- # Make sure the test build uses the same compiler, which on e.g. ppc64
 --- a/libelf/elf_update.c
 +++ b/libelf/elf_update.c
 @@ -37,6 +37,33 @@
 +{
 +  return ppc_check_object_attribute(ebl, vendor, tag, value, tag_name, value_name);
 +}
---- a/lib/libeu.h
-+++ b/lib/libeu.h
-@@ -45,4 +45,11 @@ extern char *xasprintf(const char *fmt,
- extern uint32_t crc32 (uint32_t crc, unsigned char *buf, size_t len);
- extern int crc32_file (int fd, uint32_t *resp);
-+#ifdef __APPLE__
-+static inline void tdestroy(void *root __attribute__ ((unused)),
-+                          void (*freekey)(void *) __attribute__ ((unused)))
-+{
-+}
-+#endif
-+
- #endif
 --- a/libdwfl/libdwflP.h
 +++ b/libdwfl/libdwflP.h
 @@ -31,6 +31,8 @@