[Buildroot] [PATCH v5 16/19] infra-libtool: inform libtool that STAGING_DIR is reachable at runtime

Samuel Martin s.martin49 at gmail.com
Tue Feb 7 15:26:20 UTC 2017


Hi Jérôme,

On Tue, Dec 20, 2016 at 2:46 PM, Jérôme Pouiller <jezz at sysmic.org> wrote:
> When installing binaries to $TARGET_DIR, libtool add `$STAGING_DIR{,/usr}/lib'
> to RPATH. This is annoying to create reproducible binaries. This patch just
> inform libtool that these paths are reachable on runtime and it is necessary to

s/it is necessary/it is not necessary/

> add then to RPATH.
>
> Notice `$lt_cv_sys_lib_dlsearch_path_spec' was introduced in libtool v2.0.
> Packages with libtool v1.5 continue to include `$STAGING_DIR{,/usr}/lib' in
> their RPATH. The few packages that use libtool v1.5 have to be patched
> individually in order to make them reproducible (adding AUTORECONF=YES should
> be sufficient in most cases).
>
> Note, instead of providing $lt_cv_sys_lib_dlsearch_path_spec, Yocto patch
> libtool:
>    http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/recipes-devtools/libtool/libtool/fix-final-rpath.patch
>
> Signed-off-by: Jérôme Pouiller <jezz at sysmic.org>
> ---
>  package/Makefile.in | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/package/Makefile.in b/package/Makefile.in
> index 688d5b1..6a341f2 100644
> --- a/package/Makefile.in
> +++ b/package/Makefile.in
> @@ -355,6 +355,7 @@ TARGET_CONFIGURE_ARGS = \
>         ac_cv_func_calloc_0_nonnull=yes \
>         ac_cv_func_realloc_0_nonnull=yes \
>         lt_cv_sys_lib_search_path_spec="" \
> +       lt_cv_sys_lib_dlsearch_path_spec="/lib /usr/lib $(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
>         $(BR2_AC_CV_C_BIGENDIAN) \
>         $(BR2_GT_CV_FUNC_GNUGETTEXT_LIBC)
>
> --
> 1.9.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

Regards,

-- 
Samuel


More information about the buildroot mailing list