[Buildroot] [PATCH next v6 07/10] core: implement per-package SDK and target

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Jan 14 16:33:29 UTC 2019


Hello,

On Mon, 14 Jan 2019 17:01:44 +0100, Thomas De Schampheleire wrote:

> It seems the code already calls patchelf twice:
> 
>         if ${PATCHELF} --print-rpath "${file}" > /dev/null 2>&1; then
>             # make files writable if necessary
>             changed=$(chmod -c u+w "${file}")
>             # call patchelf to sanitize the rpath
>             ${PATCHELF} --make-rpath-relative "${rootdir}"
> ${sanitize_extra_args[@]} "${file}"
> 
> so by saving the string returned in the first call, we can actually do
> a better transformation ourselves.

My latest iteration (v7) is already saving the string to do some
transformation:

  http://patchwork.ozlabs.org/patch/1019149/

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list