2 ms·
. CC= clang CXX=clang++ $CC hello.c -o hello_android_c $CXX hello.cpp -o hello_android_cpp -static-libstdc++ $CXX hello_asm.cpp -o hello_android_cpp_
by westurner 8mo ago
.
CC= clang
CXX=clang++
$CC hello.c -o hello_android_c
$CXX hello.cpp -o hello_android_cpp -static-libstdc++
$CXX hello_asm.cpp -o hello_android_cpp_asm_syscalls_only -ffreestanding -nostdlib -fuse-ld=lld
find -name hello_android -exec readelf -l {} \;
But go binaries don't require (bionic) libc unless you compile with CGO_ENABLED=1