harbor run -t LiteCoder/build-musl-static-helloharbor download LiteCoder/build-musl-static-helloBuild musl libc from source, install it to a local prefix, and compile a statically-linked "Hello World" C program using the musl toolchain.
Download and build musl libc from source:
/app/musl-install./app/musl-install/bin/musl-gcc.Write a Hello World C program:
/app/hello.c.Hello, musl! followed by a newline to stdout and exit with code 0.Compile a statically-linked binary:
/app/hello.c into a statically-linked ELF binary at /app/hello.-static flag.Verification artifacts:
/app/hello must execute successfully and produce the exact output: Hello, musl!\n (a single line with a trailing newline).file /app/hello should report "statically linked" and ldd /app/hello should report "not a dynamic executable" or similar).After completion, the following paths must exist:
/app/musl-install/bin/musl-gcc — the musl-gcc compiler wrapper/app/musl-install/lib/libc.a — the built musl static C library/app/hello.c — the C source file/app/hello — the statically-linked ELF binaryRunning /app/hello must produce exactly:
Hello, musl!