Skip to content

Commit 0b89be6

Browse files
committed
+glibc
1 parent fcc544f commit 0b89be6

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

projects/gnu.org/glibc/build.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { BuildOptions, env_include, Path, run, stub, unarchive } from "brewkit";
2+
3+
export default async function ({ prefix, tag, version }: BuildOptions) {
4+
await unarchive(`http://ftp.gnu.org/gnu/libc/glibc-${tag}.tar.gz`);
5+
6+
stub("gawk bison");
7+
env_include("gnu.org/gcc");
8+
9+
Path.cwd().join("build").mkdir().cd();
10+
11+
run`../configure
12+
--prefix=${prefix}
13+
--disable-debug
14+
--enable-kernel=2.6.0
15+
--disable-dependency-tracking
16+
--disable-silent-rules
17+
--disable-werror
18+
--enable-obsolete-rpc
19+
--without-gd
20+
--without-selinux
21+
--disable-multi-arch
22+
"--with-pkgversion=pkgx glibc-${version}"
23+
--with-bugurl=https://github.com/pkgxdev/pantry/issues/new
24+
"CFLAGS=-static-libgcc -O3"
25+
LDFLAGS=-static-libgcc
26+
`;
27+
run`make --jobs ${navigator.hardwareConcurrency}`;
28+
// run`make check`;
29+
run`make install`;
30+
}

projects/gnu.org/glibc/package.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: glibc
2+
3+
# pretty old. makes us compatible quite far back.
4+
# would be nice to build everything against multiple glibc versions since this
5+
# can enable large speed ups. Same for Linux kernel versions frankly.
6+
version: 2.39
7+
8+
platforms:
9+
- linux/x86-64

0 commit comments

Comments
 (0)