[LFS Trac] #5729: Python: add --without-static-libpython
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <[email protected]> |
#5729: Python: add --without-static-libpython
-------------------------+----------------------
Reporter: thomas | Owner: lfs-book
Type: enhancement | Status: new
Priority: normal | Milestone: 12.4
Component: Book | Version: git
Severity: normal | Keywords:
-------------------------+----------------------
**--without-static-libpython**
User dantob brought this up in #lfs-support:
<dantob> Basically, python as built in lfs ships a large static lib
libpython-$version.a (50mb unstripped, about 6mb stripped, its probably
the largest lib on thesystem), afaik it's not required for anything in
lfs. Python can be built without the static lib with `--without-static-
libpython` since python version 3.10. there may be something in blfs that
requires it, it might require some more investigation. The upstream bug
about it is here https://github.com/python/cpython/issues/87269, and the
commit
https://github.com/python/cpython/pull/24418/commits/e1268bd493ac4e44e0b29fac326287c8d098db07
Indeed, there is a big static lib:
{{{
$ ls -la /usr/lib/python3.13/config-3.13-x86_64-linux-gnu/*.a
-rw-r--r-- 1 root root 9080942 17. Apr 22:39
/usr/lib/python3.13/config-3.13-x86_64-linux-gnu/libpython3.13.a
}}}
Adding the mentioned switch (`--without-static-libpython`) prevents it
from being built - at least from being installed.
Do you know what the .a is good for? Shouldn't we add that switch?
**Test files**
The directory /usr/lib/python3.13/test contains 139M of test files.
Are they really needed?
--
Ticket URL: <https://wiki.linuxfromscratch.org/lfs/ticket/5729>
LFS Trac <https://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page