Merge pull request #85 from dancek/static-build-target

Add target `make musl-static`
This commit is contained in:
dzaima 2023-06-19 12:26:12 +03:00 committed by GitHub
commit fe3135213e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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-o3` - build targeting WASI
- `make wasi-reactor-o3` - build producing a WASI Reactor - `make wasi-reactor-o3` - build producing a WASI Reactor
- `make debug` - unoptimized build with extra assertion checks (also includes `-g`) - `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. 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 @"${MAKE}" to-bqn-build REPLXX=0 i_SHARED=1
shared-c: shared-c:
@"${MAKE}" to-bqn-build REPLXX=0 i_SHARED=1 i_build_opts=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 # mappings of old names
o3-singeli: o3 o3-singeli: o3