[Buildroot] [PATCH v4 03/11] support/scripts: add fix-rpath script to sanitize the rpath
Samuel Martin
s.martin49 at gmail.com
Tue Jul 4 15:00:51 UTC 2017
Wolfgang
On Tue, Jul 4, 2017 at 4:52 PM, Wolfgang Grandegger <wg at grandegger.com> wrote:
[...]
> Just playing with it. Here are some quick results:
>
> if patchelf --print-rpath "${file}" > /dev/null 2>&1; then
>
> 35.5 sec
>
> if readelf -d "${file}" 2>/dev/null | grep RPATH > /dev/null; then
>
> 30.4 sec
>
> if readelf -d "${file}" > /dev/null 2>&1 -a \
> patchelf --print-rpath "${file}" > /dev/null 2>&1; then
hmm... I think you should do: s/-a/&&/
AFAIK, `-a' is only valid with `test' or '`[ some-expression -a
some-other-expression ]', `&&' should be used to combine the result of
several commands.
Regards,
>
> 27.7 sec
>
> There is some saving but maybe not worth the effort for the moment.
> Concentrating on the next release now.
>
> Wolfgang.
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
Samuel
More information about the buildroot
mailing list