Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Stefan Fröberg" <stefan.froberg@petroprogram.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 09/12] elfutils: new package
Date: Thu, 20 Dec 2012 01:43:47 +0200	[thread overview]
Message-ID: <1355960630-25089-9-git-send-email-stefan.froberg@petroprogram.com> (raw)
In-Reply-To: <1355960630-25089-1-git-send-email-stefan.froberg@petroprogram.com>

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 <stefan.froberg@petroprogram.com>
---
 .../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 <features.h>
++
++#ifdef	__UCLIBC__
++#include <fts_.h>
++#else
+ #include <fts.h>
++#endif
+ 
+ #include <config.h>
+ 
+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
-- 
1.7.7.6

  parent reply	other threads:[~2012-12-19 23:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-19 23:43 [Buildroot] [PATCH 01/12] elfutils: new package Stefan Fröberg
2012-12-19 23:43 ` [Buildroot] [PATCH 02/12] " Stefan Fröberg
2012-12-19 23:43 ` [Buildroot] [PATCH 03/12] " Stefan Fröberg
2012-12-19 23:43 ` [Buildroot] [PATCH 05/12] " Stefan Fröberg
2012-12-19 23:43 ` [Buildroot] [PATCH 06/12] " Stefan Fröberg
2012-12-19 23:43 ` [Buildroot] [PATCH 07/12] " Stefan Fröberg
2012-12-19 23:43 ` [Buildroot] [PATCH 08/12] " Stefan Fröberg
2012-12-19 23:43 ` Stefan Fröberg [this message]
2012-12-19 23:43 ` [Buildroot] [PATCH 10/12] " Stefan Fröberg
2012-12-19 23:43 ` [Buildroot] [PATCH 11/12] " Stefan Fröberg
2012-12-19 23:43 ` [Buildroot] [PATCH 12/12] " Stefan Fröberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1355960630-25089-9-git-send-email-stefan.froberg@petroprogram.com \
    --to=stefan.froberg@petroprogram.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox