From patchwork Wed Dec 19 23:43:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Stefan_Fr=C3=B6berg?= X-Patchwork-Id: 207563 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 421782C008C for ; Thu, 20 Dec 2012 10:44:50 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 28BD02E903; Wed, 19 Dec 2012 23:44:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YRb7X18IpMaE; Wed, 19 Dec 2012 23:44:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 030D92DFE1; Wed, 19 Dec 2012 23:44:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4EA048F753 for ; Wed, 19 Dec 2012 23:44:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B66988109D for ; Wed, 19 Dec 2012 23:44:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pC5FzLRfDjMJ for ; Wed, 19 Dec 2012 23:44:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.petroprogram.com (mail.petroprogram.com [194.89.34.74]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4A7738109C for ; Wed, 19 Dec 2012 23:44:19 +0000 (UTC) Received: from localhost.fi (unknown [194.89.34.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: stefan.froberg@petroprogram.com) by mail.petroprogram.com (Postfix) with ESMTPSA id A5F7B44313; Thu, 20 Dec 2012 01:34:48 +0200 (EET) From: =?UTF-8?q?Stefan=20Fr=C3=B6berg?= To: buildroot@busybox.net Date: Thu, 20 Dec 2012 01:43:43 +0200 Message-Id: <1355960630-25089-5-git-send-email-stefan.froberg@petroprogram.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1355960630-25089-1-git-send-email-stefan.froberg@petroprogram.com> References: <1355960630-25089-1-git-send-email-stefan.froberg@petroprogram.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 05/12] elfutils: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This patch will instruct elfutils to link against libintl (for gettext stuff), libargp (for nonstandard commandline processing stuff) and libgnu.a (for fts.h and obstack-printf) Signed-off-by: Stefan Fröberg --- package/elfutils/elfutils.002-uclibc-fixes.patch | 80 ++++++++++++++++++++++ 1 files changed, 80 insertions(+), 0 deletions(-) create mode 100644 package/elfutils/elfutils.002-uclibc-fixes.patch diff --git a/package/elfutils/elfutils.002-uclibc-fixes.patch b/package/elfutils/elfutils.002-uclibc-fixes.patch new file mode 100644 index 0000000..e27d384 --- /dev/null +++ b/package/elfutils/elfutils.002-uclibc-fixes.patch @@ -0,0 +1,80 @@ +diff -Naur elfutils-0.155.org/libasm/Makefile.am elfutils-0.155/libasm/Makefile.am +--- elfutils-0.155.org/libasm/Makefile.am 2012-12-18 22:04:45.067735341 +0200 ++++ elfutils-0.155/libasm/Makefile.am 2012-12-18 22:07:01.998138485 +0200 +@@ -68,7 +68,7 @@ + $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \ + -Wl,--version-script,$(srcdir)/libasm.map,--no-undefined \ + -Wl,--soname,$@.$(VERSION) \ +- ../libebl/libebl.a ../libelf/libelf.so $(libasm_so_LDLIBS) ++ ../libebl/libebl.a ../libelf/libelf.so $(libasm_so_LDLIBS) -lintl + if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi + ln -fs $@ $@.$(VERSION) + +diff -Naur elfutils-0.155.org/libdw/Makefile.am elfutils-0.155/libdw/Makefile.am +--- elfutils-0.155.org/libdw/Makefile.am 2012-12-18 22:04:45.122742332 +0200 ++++ elfutils-0.155/libdw/Makefile.am 2012-12-18 22:11:15.806396209 +0200 +@@ -111,7 +111,7 @@ + -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \ + -Wl,--version-script,$<,--no-undefined \ + -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\ +- -ldl $(zip_LIBS) ++ -ldl $(zip_LIBS) -lintl -largp + if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi + ln -fs $@ $@.$(VERSION) + +diff -Naur elfutils-0.155.org/libelf/Makefile.am elfutils-0.155/libelf/Makefile.am +--- elfutils-0.155.org/libelf/Makefile.am 2012-12-18 22:04:45.108740552 +0200 ++++ elfutils-0.155/libelf/Makefile.am 2012-12-18 22:05:51.070123897 +0200 +@@ -105,7 +105,7 @@ + libelf.so: libelf_pic.a libelf.map + $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \ + -Wl,--version-script,$(srcdir)/libelf.map,--no-undefined \ +- -Wl,--soname,$@.$(VERSION),-z,defs,-z,relro $(libelf_so_LDLIBS) ++ -Wl,--soname,$@.$(VERSION),-z,defs,-z,relro $(libelf_so_LDLIBS) -lintl + if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi + ln -fs $@ $@.$(VERSION) + +diff -Naur elfutils-0.155.org/src/Makefile.am elfutils-0.155/src/Makefile.am +--- elfutils-0.155.org/src/Makefile.am 2012-12-18 22:25:29.358878353 +0200 ++++ elfutils-0.155/src/Makefile.am 2012-12-18 22:26:46.181642119 +0200 +@@ -99,26 +99,26 @@ + # Buggy old compilers. + readelf_no_Werror = yes + +-readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl +-nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(libmudflap) $(libgnu) -ldl \ ++readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl -lintl -largp ++nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(libmudflap) $(libgnu) -ldl -lintl -largp \ + $(demanglelib) +-size_LDADD = $(libelf) $(libeu) $(libmudflap) +-strip_LDADD = $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl +-ld_LDADD = $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl ++size_LDADD = $(libelf) $(libeu) $(libmudflap) -lintl -largp ++strip_LDADD = $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl -lintl -largp ++ld_LDADD = $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl -lintl -largp + if NATIVE_LD + # -ldl is always needed for libebl. + ld_LDADD += libld_elf.a + endif + ld_LDFLAGS = -rdynamic +-elflint_LDADD = $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl +-findtextrel_LDADD = $(libdw) $(libelf) $(libmudflap) +-addr2line_LDADD = $(libdw) $(libelf) $(libmudflap) +-elfcmp_LDADD = $(libebl) $(libelf) $(libmudflap) -ldl +-objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl +-ranlib_LDADD = libar.a $(libelf) $(libeu) $(libmudflap) +-strings_LDADD = $(libelf) $(libeu) $(libmudflap) +-ar_LDADD = libar.a $(libelf) $(libeu) $(libmudflap) +-unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(libmudflap) -ldl ++elflint_LDADD = $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl -lintl -largp ++findtextrel_LDADD = $(libdw) $(libelf) $(libmudflap) -lintl -largp ++addr2line_LDADD = $(libdw) $(libelf) $(libmudflap) -lintl -largp ++elfcmp_LDADD = $(libebl) $(libelf) $(libmudflap) -ldl -lintl -largp ++objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl -lintl -largp ++ranlib_LDADD = libar.a $(libelf) $(libeu) $(libmudflap) -lintl -largp ++strings_LDADD = $(libelf) $(libeu) $(libmudflap) -lintl -largp ++ar_LDADD = libar.a $(libelf) $(libeu) $(libmudflap) -lintl -largp ++unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(libmudflap) -ldl -lintl -largp + + ldlex.o: ldscript.c + ldlex_no_Werror = yes