From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Mon, 21 Oct 2019 23:18:48 +0200 Subject: [Buildroot] [PATCH 1/1] package/libselinux: fix build with python 3.8 In-Reply-To: References: <20191020203119.99538-1-james.hilliard1@gmail.com> <20191021210603.59270fc2@windsurf> Message-ID: <20191021231848.57832d2e@windsurf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Mon, 21 Oct 2019 21:25:52 +0200 James Hilliard wrote: > On Mon, Oct 21, 2019 at 9:06 PM Thomas Petazzoni > wrote: > > > > On Sun, 20 Oct 2019 14:31:19 -0600 > > James Hilliard 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