[lfs] branch trunk updated: python: Also add --without-static-libpython to the temporary installation

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <174878590989.28247.147052164647113646@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new 1b223fbe4 python: Also add --without-static-libpython to the temporary installation
1b223fbe4 is described below

commit 1b223fbe4352235dcc42489fa64fbfddf528b5ca
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sun Jun 1 21:49:48 2025 +0800

    python: Also add --without-static-libpython to the temporary installation
    
    Without it, in the final system
    /usr/lib/python3.13/config-3.13-$triple/libpython3.13.a is a remnant
    from chapter 7 instead of being absent, defeating our will to save
    space.
---
 chapter07/python.xml | 14 +++++++++++---
 chapter08/python.xml |  8 --------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/chapter07/python.xml b/chapter07/python.xml
index 872cf4a36..a75d5ad6f 100644
--- a/chapter07/python.xml
+++ b/chapter07/python.xml
@@ -52,9 +52,10 @@
 
     <para>Prepare Python for compilation:</para>
 
-<screen><userinput remap="configure">./configure --prefix=/usr   \
-            --enable-shared \
-            --without-ensurepip</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr       \
+            --enable-shared     \
+            --without-ensurepip \
+            --without-static-libpython</userinput></screen>
 
     <variablelist>
       <title>The meaning of the configure option:</title>
@@ -74,6 +75,13 @@
         </listitem>
       </varlistentry>
 
+      <varlistentry>
+        <term><parameter>--without-static-libpython</parameter></term>
+        <listitem>
+          <para>This switch prevents building a large, but unneeded, static
+          library.</para>
+        </listitem>
+      </varlistentry>
     </variablelist>
 
     <para>Compile the package:</para>
diff --git a/chapter08/python.xml b/chapter08/python.xml
index 0cbce0b0c..63a7e24cd 100644
--- a/chapter08/python.xml
+++ b/chapter08/python.xml
@@ -77,14 +77,6 @@
       </listitem>
     </varlistentry>
 
-    <varlistentry>
-      <term><parameter>--without-static-libpython</parameter></term>
-      <listitem>
-        <para>This switch prevents building a large, but unneeded, static
-        library.</para>
-      </listitem>
-    </varlistentry>
-
     </variablelist>
 
     <para>Compile the package:</para>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.