Read the RuxOS Book for detail.
- Compile the C files with Musl in
rootfs/.
cd rootfs/
musl-gcc libadd.c -shared -o lib/libadd.so
musl-gcc hello.c -Llib -ladd -o bin/hello-
Copy the Musl dyanmic linker to
rootfs/lib. -
Run
Run with ruxgo:
# in apps/c/dl
ruxgo -b && ruxgo -rRun with make
# in the RuxOS main directory.
make run ARCH=aarch64 A=apps/c/dl V9P=y MUSL=y LOG=debug