From patchwork Wed Dec 19 23:43:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [09/12] elfutils: new package Date: Wed, 19 Dec 2012 13:43:47 -0000 From: =?utf-8?q?Stefan_Fr=C3=B6berg?= X-Patchwork-Id: 207565 Message-Id: <1355960630-25089-9-git-send-email-stefan.froberg@petroprogram.com> To: buildroot@busybox.net uClibc does not have fts.h (which is nonstandard) enabled by default. So we use fts_.h from libgnu.a as substitute and also expose __UCLIBC__ macro from features.h so that ifdef ... else ... endif will work correctly. Signed-off-by: Stefan Fröberg --- .../elfutils/elfutils-linux-kernel-modules.patch | 29 ++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 package/elfutils/elfutils-linux-kernel-modules.patch diff --git a/package/elfutils/elfutils-linux-kernel-modules.patch b/package/elfutils/elfutils-linux-kernel-modules.patch new file mode 100644 index 0000000..3fc2117 --- /dev/null +++ b/package/elfutils/elfutils-linux-kernel-modules.patch @@ -0,0 +1,29 @@ +diff -Naur elfutils-0.155.org/libdwfl/linux-kernel-modules.c elfutils-0.155/libdwfl/linux-kernel-modules.c +--- elfutils-0.155.org/libdwfl/linux-kernel-modules.c 2012-12-17 21:41:10.075379208 +0200 ++++ elfutils-0.155/libdwfl/linux-kernel-modules.c 2012-12-17 21:42:00.336767164 +0200 +@@ -29,7 +29,13 @@ + /* We include this before config.h because it can't handle _FILE_OFFSET_BITS. + Everything we need here is fine if its declarations just come first. */ + ++#include ++ ++#ifdef __UCLIBC__ ++#include ++#else + #include ++#endif + + #include + +diff -Naur elfutils-0.155.org/libdwfl/Makefile.am elfutils-0.155/libdwfl/Makefile.am +--- elfutils-0.155.org/libdwfl/Makefile.am 2012-12-17 21:44:27.747502320 +0200 ++++ elfutils-0.155/libdwfl/Makefile.am 2012-12-17 21:45:14.681467381 +0200 +@@ -31,7 +31,7 @@ + ## + include $(top_srcdir)/config/eu.am + INCLUDES += -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \ +- -I$(srcdir)/../libdw ++ -I$(srcdir)/../libdw -I$(srcdir)/../gnulib + VERSION = 1 + + noinst_LIBRARIES = libdwfl.a