From 10223b71862228cf83fe7f8f6de96a141e265968 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Stenberg?= Date: Fri, 8 Feb 2013 16:35:33 +0100 Subject: [PATCH] libiconv: Remove RPATH from binaries MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Modify libtool to not add RPATH. This solves https://bugzilla.yoctoproject.org/show_bug.cgi?id=2669 (From OE-Core rev: 273c437813b19577d68fa49ec04ea42154ad70c9) Signed-off-by: Björn Stenberg Signed-off-by: Richard Purdie --- meta/recipes-support/libiconv/libiconv_1.14.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-support/libiconv/libiconv_1.14.bb b/meta/recipes-support/libiconv/libiconv_1.14.bb index 6666866..b1d2612 100644 --- a/meta/recipes-support/libiconv/libiconv_1.14.bb +++ b/meta/recipes-support/libiconv/libiconv_1.14.bb @@ -34,6 +34,12 @@ do_configure_prepend () { rm -f m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 libcharset/m4/libtool.m4 libcharset/m4/ltoptions.m4 libcharset/m4/ltsugar.m4 libcharset/m4/ltversion.m4 libcharset/m4/lt~obsolete.m4 } +do_configure_append () { + # forcibly remove RPATH from libtool + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' *libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=_NO_RPATH_|g' *libtool +} + do_install_append () { rm -rf ${D}${libdir}/preloadable_libiconv.so rm -rf ${D}${libdir}/charset.alias -- 2.7.4