Skip to content

Commit 0146e80

Browse files
committed
wip
1 parent 8a5fa9a commit 0146e80

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

projects/gnu.org/glibc/build.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ export default async function ({ prefix, tag, version }: BuildOptions) {
77
env_include("gnu.org/gcc");
88

99
const kernel_headers = Path.cwd().join(`kernel-5.4`);
10-
await tmp(async () => {
10+
await tmp(async cwd => {
1111
await unarchive(`https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.tar.xz`);
12-
run`make INSTALL_HDR_PATH=${kernel_headers}`;
12+
run`make headers`;
13+
cwd.join("usr/include").cp({ to: kernel_headers.mkdir()})
1314
});
1415

1516
Path.cwd().join("build").mkdir().cd();
@@ -25,7 +26,7 @@ export default async function ({ prefix, tag, version }: BuildOptions) {
2526
--without-selinux
2627
--with-pkgversion="pkgx glibc-${version}"
2728
--with-bugurl=https://github.com/pkgxdev/pantry/issues/new
28-
--with-headers=${kernel_headers}/include
29+
--with-headers=${kernel_headers}
2930
CFLAGS="-O2 -march=x86-64 -mtune=generic"
3031
`;
3132
run`make --jobs ${navigator.hardwareConcurrency}`;

0 commit comments

Comments
 (0)