Skip to content

Commit ea8025b

Browse files
committed
+glibc
1 parent ce16aaf commit ea8025b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

projects/gnu.org/glibc/build.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { BuildOptions, ensure, env_include, Path, run, stub, unarchive } from "brewkit";
2+
3+
export default async function ({ prefix, tag }: BuildOptions) {
4+
await unarchive(`http://ftp.gnu.org/gnu/libc/glibc-${tag}.tar.gz`);
5+
6+
ensure("python");
7+
stub("gawk bison");
8+
env_include("gnu.org/gcc");
9+
10+
Path.cwd().join("build").mkdir().cd();
11+
12+
run`../configure --prefix=${prefix} --disable-debug`;
13+
run`make --jobs ${navigator.hardwareConcurrency}`;
14+
run`make check`;
15+
run`make install`;
16+
}

projects/gnu.org/glibc/package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: glibc
2+
3+
version: 2.39

0 commit comments

Comments
 (0)