<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/lang/python/python3/patches-host-setuptools/0001-Adjust-library-header-paths-for-cross-compilation.patch, branch master</title>
<subtitle>Community maintained packages for OpenWrt</subtitle>
<id>http://x-nagi.com/cgit/packages/atom?h=master</id>
<link rel='self' href='http://x-nagi.com/cgit/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/'/>
<updated>2023-10-30T20:33:07Z</updated>
<entry>
<title>python3: Fix building C extensions with setuptools</title>
<updated>2023-10-30T20:33:07Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-10-30T15:56:43Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=624fb955619c0b4b368e2ac1880619f159e3b8d6'/>
<id>urn:sha1:624fb955619c0b4b368e2ac1880619f159e3b8d6</id>
<content type='text'>
setuptools provides a local copy of distutils and when building a C
extension, this distutils will add the target LIBDIR (/usr/lib) to the
list of library paths.

If the build system has a libpython3.11.so in /usr/lib, then the linker
will try to link to this shared library and fail.

This adapts 008-distutils-use-python-sysroot.patch for host setuptools
to add the correct library directory.

Fixes: https://github.com/openwrt/packages/issues/22330

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
</feed>
