summaryrefslogtreecommitdiff
path: root/lang/wasi-libc
AgeCommit message (Collapse)AuthorFilesLines
2022-01-10wasi-libc: fix build on SunOStnn1-1/+6
2022-01-09Fix packages that use GITSUB_MODULES on SunOS and possibly otherstnn1-1/+2
This is annoying, but for now we must always explicitly combine GITHUB_SUBMODULES with EXTRACT_USING+=bsdtar. This is because mk/fetch/github.mk uses OPTS_TAR=--strip-components=1 and that is not supported by nbtar(pax), which is the default pkgsrc tar on some platforms. We cannot override EXTRACT_USING in github.mk because that is too late. We should switch all platforms to bsdtar and retire pax.
2022-01-07wasi-*: eliminate -march and/or -mcpu CFLAGS user might have settnn1-2/+4
Random CFLAGS from mk.conf are not a good idea in a cross compile scenario. Also reset ABI to empty string since -m32 can break some native CMake tests.
2022-01-07wasi-*: force ABI=32tnn1-1/+2
These packages were failing when ABI=64 in mk.conf, because then -m64 is passed down to clang and WebAssembly currently only supports -m32.
2021-12-22wasi-libc: Disable SSP explicitly and disable stack check tooryoon1-3/+4
Fix build when PKGSRC_USE_SSP=all and PKGSRC_USE_STACK_CHECK=yes are defined. Reported by wiz@.
2021-12-22wasi-libc: set CLANGBASE instead of PKG_CC/CXXtnn1-3/+5
Otherwise it breaks when user has CLANGBASE=/usr in mk.conf. Also set PKG_FAIL_REASON when llvm doesn't have llvm-target-webassembly.
2021-12-19lang/wasi-libc: import wasi-libc-0.0.0pre20210923ryoon6-0/+312
WASI Libc is a libc for WebAssembly programs built on top of WASI system calls. It provides a wide array of POSIX-compatible C APIs, including support for standard I/O, file I/O, filesystem manipulation, memory management, time, string, environment variables, program startup, and many other APIs. WASI Libc is sufficiently stable and usable for many purposes, as most of the POSIX-compatible APIs are stable, though it is continuing to evolve to better align with wasm and WASI.