From ea5279a608e87aac6e07515525fc03cbb8141401 Mon Sep 17 00:00:00 2001 From: sergio Date: Fri, 17 Jul 2026 04:33:58 -0400 Subject: [PATCH] static: sqlite, libgpg-error y fontconfig cumplen link=static (8 de 28) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mismo patrón de libtool: LDFLAGS="-all-static -no-pie" en compile Y en install. El control duro (lista de ficheros vs sellado viejo + 0 NEEDED en TODOS los ejecutables, si no revierte) hizo su trabajo: pcre2 salió del build con pcre2grep y pcre2test todavía dinámicos y se revirtió sola. Sin ese control habría entrado como "arreglada" — es la misma trampa de xz, que devolvía rc=0 con el artefacto mutilado. sqlite b3:235b18d98f18 (8 ficheros) · libgpg-error b3:8ccbe32ccb41 (36) · fontconfig b3:ad960af29ef5 (65) — todas con la lista de ficheros intacta. Quedan 20: 9 con forma de fase distinta (mandoc, libwebp, kbd, parted, sudo, libarchive, lsof, samurai, pkgconf, libcap: van a mano), pcre2 y xz que necesitan otro enfoque, y 5 Rust (helix, yazi, git-absorb, cargo-audit, tuc) que arrastran libgcc_s por crt-static, no por libtool. Co-Authored-By: Claude Opus 4.8 --- recipes/fontconfig.toml | 4 ++-- recipes/libgpg-error.toml | 4 ++-- recipes/sqlite.toml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes/fontconfig.toml b/recipes/fontconfig.toml index eda899e1..5adbb841 100644 --- a/recipes/fontconfig.toml +++ b/recipes/fontconfig.toml @@ -10,8 +10,8 @@ target = "x86_64-linux-musl" link = "static" [build.phases] configure = "./configure --prefix=/usr --sysconfdir=/etc --disable-shared --enable-static --disable-docs" -compile = "make" -install = "make install DESTDIR=/out" +compile = 'make LDFLAGS="-all-static -no-pie" -j"$(nproc)"' +install = 'make install DESTDIR=/out LDFLAGS="-all-static -no-pie"' # libpng+zlib: freetype se compila --with-png, así que freetype2.pc trae `Requires: libpng` # (y libpng.pc → zlib); sin ellos pkg-config no resuelve freetype2 y ./configure aborta. [deps] diff --git a/recipes/libgpg-error.toml b/recipes/libgpg-error.toml index d2f5f302..9e781c77 100644 --- a/recipes/libgpg-error.toml +++ b/recipes/libgpg-error.toml @@ -17,6 +17,6 @@ build = ["make"] [build.phases] configure = './configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-shared --enable-static --disable-doc --disable-tests --enable-install-gpg-error-config' -compile = 'make' -install = 'make DESTDIR=/out install' +compile = 'make LDFLAGS="-all-static -no-pie" -j"$(nproc)"' +install = 'make DESTDIR=/out install LDFLAGS="-all-static -no-pie"' diff --git a/recipes/sqlite.toml b/recipes/sqlite.toml index 777bef07..4dfbdf2a 100644 --- a/recipes/sqlite.toml +++ b/recipes/sqlite.toml @@ -13,5 +13,5 @@ build = ["make"] [build.phases] configure = "./configure --prefix=/usr --disable-shared --enable-static" -compile = "make" -install = "make install DESTDIR=/out" +compile = 'make LDFLAGS="-all-static -no-pie" -j"$(nproc)"' +install = 'make install DESTDIR=/out LDFLAGS="-all-static -no-pie"'