libxml2, xz: compile dynamically

This commit is contained in:
Jeremy Soller 2025-05-01 15:01:13 -06:00
parent 631758cabb
commit 9e8c2f6124
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
2 changed files with 18 additions and 5 deletions

View File

@ -1,6 +1,11 @@
[source]
tar = "https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.3.tar.xz"
blake3 = "0653d3750576299c4cb88740942165671b576ff93019f3d669b3f37136225ab7"
script = """
DYNAMIC_INIT
autotools_recursive_regenerate
"""
[build]
template = "custom"
dependencies = [
@ -8,7 +13,12 @@ dependencies = [
"zlib"
]
script = """
COOKBOOK_CONFIGURE_FLAGS+=(
DYNAMIC_INIT
COOKBOOK_CONFIGURE_FLAGS=(
--host="${GNU_TARGET}"
--prefix="/usr"
--enable-shared
--enable-static
--without-python
)
cookbook_configure

View File

@ -1,22 +1,25 @@
[source]
tar = "https://github.com/tukaani-project/xz/releases/download/v5.2.13/xz-5.2.13.tar.gz"
blake3 = "edc6350542e8cb7188a878135e5b9bd592d687e5b47451ca1c89d51cc4bc6b53"
script = """
DYNAMIC_INIT
autotools_recursive_regenerate
"""
[build]
template = "custom"
script = """
export CFLAGS="-static"
DYNAMIC_INIT
COOKBOOK_CONFIGURE_FLAGS=(
--host="${GNU_TARGET}"
--prefix=""
--prefix="/usr"
--disable-lzmadec
--disable-lzmainfo
--disable-xz
--disable-xzdec
--enable-shared=no
--enable-shared=yes
--enable-static=yes
--enable-threads=no
--with-pic=no
)
cookbook_configure
"""