[Buildroot] [PATCH 1/1] package/libselinux: fix build with python 3.8

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Oct 21 21:18:48 UTC 2019


On Mon, 21 Oct 2019 21:25:52 +0200
James Hilliard <james.hilliard1 at gmail.com> wrote:

> On Mon, Oct 21, 2019 at 9:06 PM Thomas Petazzoni
> <thomas.petazzoni at bootlin.com> wrote:
> >
> > On Sun, 20 Oct 2019 14:31:19 -0600
> > James Hilliard <james.hilliard1 at gmail.com> wrote:
> >  
> > > +ifeq ($(BR2_PACKAGE_PYTHON3),y)
> > > +LIBSELINUX_MAKE_OPTS += \
> > > +     PYLIBS="`$(STAGING_DIR)/usr/bin/python3-config --libs --embed`"
> > > +endif  
> >
> > Same question: libselinux is not embedding Python, it is providing a
> > Python extension written in C, so according to what's in
> > https://bugs.python.org/issue36721, we should not need --embed.  
> I think it might depend on if python is built with static vs shared libraries.

That is not really what the bug report says. It says the reason to not
link Python extensions with libpython was to allow loading Python
modules in a statically-compiled Python, if I understood correctly.

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



More information about the buildroot mailing list