Received: from mail-gx0-f175.google.com ([209.85.161.175]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Rg3f5-0007wQ-IP for openembedded-core@lists.openembedded.org; Thu, 29 Dec 2011 01:15:59 +0100 Received: by ggnh1 with SMTP id h1so8460709ggn.6 for ; Wed, 28 Dec 2011 16:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=so0X4jFYXqvZd6LtQPG5ymOYKaPjWmWZ+mXNe2KfUfU=; b=uBVYGh5MbZ1wOMQ+xtRZDavaNFH7jlQWTwudZ7RAmZB1VsYjn0xRPP1gQsFghiFqaF gKdnLrtTLMfAsHRzql2fIX0UBSOpmvf+5oPaGqRPeoqCYjiW9qk8+6dhSq8Yqb+P67Ow eFZjXwCoaohb36GyQfiJiSqZ2HPx0zcW6Wx/k= Received: by 10.236.181.136 with SMTP id l8mr44907265yhm.103.1325117322068; Wed, 28 Dec 2011 16:08:42 -0800 (PST) Received: from sb-u1004lts-64bit.alm.mentorg.com (hsvwanfw1-nat.mentorg.com. [139.181.24.34]) by mx.google.com with ESMTPS id e66sm46252510yhk.6.2011.12.28.16.08.41 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Dec 2011 16:08:41 -0800 (PST) From: Christopher Larson To: openembedded-core@lists.openembedded.org Date: Wed, 28 Dec 2011 18:08:41 -0600 Message-Id: <1325117322-27695-1-git-send-email-kergoth@gmail.com> X-Mailer: git-send-email 1.7.8.rc4 Cc: Christopher Larson Subject: [PATCH 1/2] elfutils: fix for dso link change in recent ld X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2011 00:15:59 -0000 From: Christopher Larson This patch makes the link to the dependencies of libdw explicit, as recent ld no longer implicitly links them. See http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html as a similar example of the error message you can encounter without this patch, and https://fedoraproject.org/wiki/UnderstandingDSOLinkChange and https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking for more details. Signed-off-by: Christopher Larson --- .../elfutils/dso-link-change.patch | 32 ++++++++++++++++++++ meta/recipes-devtools/elfutils/elfutils_0.148.bb | 5 ++- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/elfutils/dso-link-change.patch diff --git a/meta/recipes-devtools/elfutils/dso-link-change.patch b/meta/recipes-devtools/elfutils/dso-link-change.patch new file mode 100644 index 0000000..d0cd3ed --- /dev/null +++ b/meta/recipes-devtools/elfutils/dso-link-change.patch @@ -0,0 +1,32 @@ +Upstream-Status: Pending + +# This patch makes the link to the dependencies of libdw explicit, as recent +# ld no longer implicitly links them. See +# http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html as +# a similar example of the error message you can encounter without this patch, +# and https://fedoraproject.org/wiki/UnderstandingDSOLinkChange and +# https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking for more +# details. + +--- elfutils-0.148.orig/src/Makefile.am ++++ elfutils-0.148/src/Makefile.am +@@ -86,7 +86,7 @@ libdw = ../libdw/libdw.a $(zip_LIBS) $(l + libelf = ../libelf/libelf.a + else + libasm = ../libasm/libasm.so +-libdw = ../libdw/libdw.so ++libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl + libelf = ../libelf/libelf.so + endif + libebl = ../libebl/libebl.a +--- elfutils-0.148.orig/tests/Makefile.am ++++ elfutils-0.148/tests/Makefile.am +@@ -172,7 +172,7 @@ libdw = ../libdw/libdw.a $(zip_LIBS) $(l + libelf = ../libelf/libelf.a + libasm = ../libasm/libasm.a + else +-libdw = ../libdw/libdw.so ++libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl + libelf = ../libelf/libelf.so + libasm = ../libasm/libasm.so + endif diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb index 0f4e8ca..710959a 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3\ file://EXCEPTION;md5=570adcb0c1218ab57f2249c67d0ce417" DEPENDS = "libtool bzip2 zlib" -PR = "r4" +PR = "r5" SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/elfutils-${PV}.tar.bz2" @@ -29,7 +29,8 @@ SRC_URI += "\ file://elfutils-fsize.patch \ file://remove-unused.patch \ file://mempcpy.patch \ - file://fix_for_gcc-4.7.patch\ + file://fix_for_gcc-4.7.patch \ + file://dso-link-change.patch \ " # Only apply when building uclibc based target recipe SRC_URI_append_libc-uclibc = " ${@['', 'file://uclibc-support.patch']['${PN}' == '${BPN}']}" -- 1.7.8.rc4