Add target make static-bin

This commit is contained in:
Hannu Hartikainen 2023-06-10 21:04:35 +03:00
parent ec106c0b31
commit fb5efa3104
2 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ Alternatively, `build/build` (aka build.bqn) can be invoked manually, though not
- `make wasi-o3` - build targeting WASI
- `make wasi-reactor-o3` - build producing a WASI Reactor
- `make debug` - unoptimized build with extra assertion checks (also includes `-g`)
- `make static-bin` - build a statically linked executable (for a fully standalone binary, try `make static-bin CC=musl-gcc REPLXX=0`)
All of the above will go through build.bqn. If that causes problems, `make o3-makeonly` or `make c-makeonly` can be used. These still enable REPLXX by default, but do not support Singeli. Furthermore, these targets don't support some of the build flags that the others do.

View File

@ -80,6 +80,8 @@ shared-o3:
@"${MAKE}" to-bqn-build REPLXX=0 i_SHARED=1
shared-c:
@"${MAKE}" to-bqn-build REPLXX=0 i_SHARED=1 i_build_opts=c
static-bin:
@"${MAKE}" to-bqn-build FFI=0 LDFLAGS="-static"
# mappings of old names
o3-singeli: o3