things
This commit is contained in:
@@ -13,7 +13,7 @@ source = tarball_source(
|
||||
def configure(ctx):
|
||||
configure_args = [
|
||||
ctx.source_dir / "configure",
|
||||
"--prefix=" + ctx.prefix,
|
||||
"--prefix=/",
|
||||
"--target=" + options.target_triple,
|
||||
"--with-sysroot=" + ctx.sysroot,
|
||||
"--with-pic",
|
||||
@@ -28,10 +28,9 @@ def configure(ctx):
|
||||
"--enable-threads",
|
||||
"--disable-nls",
|
||||
"--disable-werror",
|
||||
# gprofng's libcollector relies on glibc-specific internals.
|
||||
"--disable-gprofng",
|
||||
]
|
||||
# gprofng's libcollector relies on glibc-specific internals.
|
||||
if options.libc == "musl":
|
||||
configure_args.append("--disable-gprofng")
|
||||
|
||||
ctx.run(configure_args, env = {
|
||||
"CFLAGS": options.host_cflags,
|
||||
|
||||
@@ -15,7 +15,7 @@ def configure(ctx):
|
||||
ctx.run([
|
||||
ctx.source_dir / "configure",
|
||||
"--target=" + options.target_triple,
|
||||
"--prefix=" + ctx.prefix,
|
||||
"--prefix=/",
|
||||
"--with-sysroot=" + ctx.sysroot,
|
||||
"--without-headers",
|
||||
"--with-newlib",
|
||||
|
||||
@@ -17,7 +17,7 @@ def configure(ctx):
|
||||
ctx.run([
|
||||
ctx.source_dir / "configure",
|
||||
"--target=" + options.target_triple,
|
||||
"--prefix=" + ctx.prefix,
|
||||
"--prefix=/",
|
||||
"--with-sysroot=" + ctx.sysroot,
|
||||
"--with-build-sysroot=" + ctx.sysroot,
|
||||
"--enable-languages=c,c++,lto",
|
||||
@@ -48,7 +48,6 @@ def build(ctx):
|
||||
|
||||
def install(ctx, pkg):
|
||||
ctx.run(["make", "install-strip"], env = {"DESTDIR": pkg.dest_dir})
|
||||
# Drop libtool archives — they bake build-time paths into target programs.
|
||||
ctx.run([
|
||||
"find", pkg.dest_dir + ctx.prefix, "-name", "*.la", "-delete",
|
||||
])
|
||||
|
||||
# Drop libtool archives.
|
||||
ctx.run(["find", pkg.dest_dir, "-name", "*.la", "-delete"])
|
||||
|
||||
@@ -19,7 +19,7 @@ def configure(ctx):
|
||||
"-B", ctx.build_dir,
|
||||
"-G", "Ninja",
|
||||
"-DCMAKE_BUILD_TYPE=Release",
|
||||
"-DCMAKE_INSTALL_PREFIX=" + ctx.prefix,
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
"-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld",
|
||||
"-DLLVM_ENABLE_RUNTIMES=compiler-rt",
|
||||
"-DLLVM_TARGETS_TO_BUILD=X86;AArch64;RISCV",
|
||||
|
||||
Reference in New Issue
Block a user