Opened 4 months ago
Closed 3 months ago
#5729 closed enhancement (fixed)
Python: add --without-static-libpython
Reported by: | thomas | Owned by: | lfs-book |
---|---|---|---|
Priority: | normal | Milestone: | 12.4 |
Component: | Book | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description
--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?
Change History (2)
comment:1 by , 4 months ago
comment:2 by , 3 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in trunk from the gcc15 branch.
I have --disable-test-modules and no /test directory.