recipe: basic recipe parsing

This commit is contained in:
2026-05-22 20:54:44 +02:00
parent a525868969
commit 1a7c817fb9
7 changed files with 238 additions and 82 deletions
+5 -5
View File
@@ -13,8 +13,8 @@ source = tarball(
def configure(ctx):
ctx.run(
ctx.source_dir / "configure",
"--prefix=" + cfg.prefix,
"--target=" + cfg.target_triple,
"--prefix=" + options.prefix,
"--target=" + options.target_triple,
"--with-sysroot=" + ctx.sysroot_dir,
"--with-pic",
"--enable-cet",
@@ -31,9 +31,9 @@ def configure(ctx):
# gprofng's libcollector relies on glibc-specific internals.
"--disable-gprofng",
env = {
"CFLAGS": cfg.host_cflags,
"CXXFLAGS": cfg.host_cxxflags,
"LDFLAGS": cfg.host_ldflags,
"CFLAGS": options.host_cflags,
"CXXFLAGS": options.host_cxxflags,
"LDFLAGS": options.host_ldflags,
})
_, build, install = autotools()