From 1b223fbe4352235dcc42489fa64fbfddf528b5ca Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 1 Jun 2025 21:49:48 +0800 Subject: [PATCH] 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 @@ Prepare Python for compilation: -./configure --prefix=/usr \ - --enable-shared \ - --without-ensurepip +./configure --prefix=/usr \ + --enable-shared \ + --without-ensurepip \ + --without-static-libpython The meaning of the configure option: @@ -74,6 +75,13 @@ + + --without-static-libpython + + This switch prevents building a large, but unneeded, static + library. + + Compile the package: 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 @@ - - --without-static-libpython - - This switch prevents building a large, but unneeded, static - library. - - - Compile the package: