checking for make... /usr/bin/make checking for strip... /usr/bin/strip checking for compiler... aarch64-linux-gnu-gcc-11 checking whether the compiler supports GNU C11... ok checking for header fcntl.h... ok checking for header sys/ioctl.h... ok checking for header sys/mount.h... ok checking for header sys/socket.h... ok checking for header unistd.h... ok checking for header sys/capability.h... ok checking for header seccomp.h... ok checking for header pthread.h... ok checking whether the compiler supports -ftrivial-auto-var-init=pattern... no checking whether the compiler supports -fcf-protection=full... no checking whether the compiler supports -flto=auto... ok checking whether the compiler supports -fPIE... ok checking whether the compiler supports -pie... ok checking whether the compiler supports -Wl,-z,relro... ok checking whether the compiler supports -Wl,-z,noexecstack... ok checking whether the compiler supports -Wl,-z,now... ok checking whether the compiler supports -fstack-protector-all... ok checking whether the compiler supports -fstack-clash-protection... ok checking whether the compiler supports -mshstk... no checking whether the compiler supports -Wno-unused-result... ok checking whether the compiler supports -O2... ok checking whether the compiler supports -Wl,--build-id=sha1... ok checking whether the compiler supports -ffunction-sections... ok checking whether the compiler supports -fdata-sections... ok checking whether the compiler supports -Wl,--gc-sections... ok checking whether the compiler supports -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3... ok checking for -lcap... ok checking for -lseccomp... ok checking for -lpthread... ok create config.mk... ok
printf"checking for make... " if ! command -v make; then error "not found" fi
输出:
1
checking for make... /usr/bin/make
检查编译器:
1 2 3 4 5 6 7 8 9
printf"checking for compiler... " if [ ! $CC ]; then if [ ! $(command -v cc) ]; then error "not found" fi CC=$(realpath $(command -v cc)) export CC=${CC##*/} fi printf"$CC\n"
输出:
1
checking for compiler... aarch64-linux-gnu-gcc-11
检查C标准与静态链接支持:
1 2 3 4 5 6
printf"checking whether the compiler supports GNU C11... " (echo"int main(){}" | $CC -x c -o /dev/null -std=gnu11 -) >/dev/null 2>&1 && printf"ok\n" || error "no" if [ $STATIC_COMPILE ]; then printf"checking whether the compiler supports -static compile... " echo"int main(){}" | $CC -static -x c -o /dev/null -std=gnu11 - >/dev/null 2>&1 && printf"ok\n" || error "no" fi
输出:
1 2
checking whether the compiler supports GNU C11... ok checking whether the compiler supports -static compile... ok