things
This commit is contained in:
+6
-17
@@ -16,12 +16,9 @@ deps = ["linux-headers"]
|
||||
build_if = options.libc == "glibc"
|
||||
|
||||
def configure(ctx):
|
||||
ctx.run([
|
||||
ctx.source_dir / "configure",
|
||||
"--host=" + options.target_triple,
|
||||
autotools_configure(ctx, [
|
||||
"--build=" + options.target_triple,
|
||||
"--prefix=/usr",
|
||||
"--with-headers=" + ctx.sysroot / "usr/include",
|
||||
"--with-headers=" + ctx.sysroot / options.prefix / "include",
|
||||
"--enable-kernel=5.4",
|
||||
"--enable-bind-now",
|
||||
"--enable-stack-protector=strong",
|
||||
@@ -31,17 +28,9 @@ def configure(ctx):
|
||||
"--disable-nscd",
|
||||
"--without-selinux",
|
||||
"--without-gd",
|
||||
"libc_cv_slibdir=/lib",
|
||||
"libc_cv_rtlddir=/lib",
|
||||
"libc_cv_forced_unwind=yes",
|
||||
"libc_cv_ssp=no",
|
||||
"libc_cv_ssp_strong=yes",
|
||||
], env = {
|
||||
"CC": options.target_triple + "-gcc",
|
||||
"CXX": options.target_triple + "-g++",
|
||||
"CFLAGS": options.cflags,
|
||||
})
|
||||
])
|
||||
|
||||
def build(ctx):
|
||||
ctx.run(["make", "-j" + str(ctx.jobs)])
|
||||
|
||||
def install(ctx, pkg):
|
||||
ctx.run(["make", "install", "DESTDIR=" + pkg.dest_dir])
|
||||
_, build, install = autotools()
|
||||
|
||||
Reference in New Issue
Block a user