[Buildroot] [PATCH] python: fix to ensure libpython is stripped

Przemyslaw Wrzos przemyslaw.wrzos at calyptech.com
Thu Jan 23 23:53:19 UTC 2014


Hello Thomas,

On Fri, 24 Jan 2014 at 01:06:08, Thomas De Schampheleire wrote:

> On Thu, Jan 23, 2014 at 4:40 AM, Przemyslaw Wrzos
> <przemyslaw.wrzos at calyptech.com> wrote:
>> The python and python3 builds mark libpython as read-only which
>> prevents it from being stripped out correctly for the target.
>> 
>> Signed-off-by: Przemyslaw Wrzos <przemyslaw.wrzos at calyptech.com>
>> ---
>
> Acked-by: Thomas De Schampheleire
> <thomas.de_schampheleire at alcatel-lucent.com> Tested-by: Thomas De
> Schampheleire <thomas.de_schampheleire at alcatel-lucent.com> (tested with
> python2 only)
> 
> Note: the library will remain writable, but this doesn't look like a
> big problem to me...
> 
> By the way: nice find! Saves about 4MB on Python 2!

Yep, that's the only caveat without stuffing some horrible hack into
buildroot elsewhere to get around it. I couldn't think of a downside
though, and I've been running this on my embedded systems for a year now
without issue.

Cheers,
Przemyslaw Wrzos



More information about the buildroot mailing list