alpha
Login
or
Join now
tombl.dev
/
distro
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
busybox: build with shared memory
author
Thomas Stokes
date
1 year ago
(Apr 14, 2025, 11:12 PM +0800)
commit
ed4f9940
ed4f9940b9a2abf2822f565bcc69ba9cc2bda4af
parent
43aa6b7b
43aa6b7b803c2fdf2f91b4146bb259d77ad7fe62
+2
-2
1 changed file
Expand all
Collapse all
Unified
Split
packages
busybox
package.nix
+2
-2
packages/busybox/package.nix
Reviewed
···
36
36
ARCH=wasm32 \
37
37
HOSTCC=${clang-host}/bin/clang \
38
38
CC=${clang}/bin/clang \
39
39
-
CFLAGS_busybox="${musl}/lib/crt1.o -Wl,--import-memory" "$@"
39
39
+
CFLAGS_busybox="${musl}/lib/crt1.o -Wl,--import-memory -Wl,--max-memory=4294967296 -Wl,--shared-memory -Wl,--export-table" "$@"
40
40
}
41
41
42
42
config() {
···
54
54
config STATIC_LIBGCC n
55
55
config CROSS_COMPILER_PREFIX llvm-
56
56
config SYSROOT ${musl}
57
57
-
config EXTRA_CFLAGS '-nostdlib -isystem ${musl}/include -I${linux.headers}/include ${lib.optionalString config.debug "-g"}'
57
57
+
config EXTRA_CFLAGS '-nostdlib -isystem ${musl}/include -I${linux.headers}/include ${lib.optionalString config.debug "-g"} -matomics -mbulk-memory'
58
58
config EXTRA_LDFLAGS ${compiler-rt}/libclang_rt.builtins-wasm32.a
59
59
config EXTRA_LDLIBS c
60
60