Bootstrap

Kylin Server V10下Redis源码安装并安全加固

一、查看GCC版本

1.查看操作系统信息

[root@localhost ~]# cat /etc/.kyinfo

[dist]

name=Kylin

milestone=Server-V10-GFB-Release-ZF9_01-2204-Build03

arch=arm64

beta=False

time=2023-01-09 11:04:36

dist_id=Kylin-Server-V10-GFB-Release-ZF9_01-2204-Build03-arm64-2023-01-09 11:04:36

[servicekey]

key=0080176

[os]

to=

term=2024-05-16

2.查看已安装的gcc版本信息

[root@localhost ~]# gcc -v

使用内建 specs

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/local/gcc/libexec/gcc/aarch64-linux-gnu/13.2.0/lto-wrapper

OFFLOAD_TARGET_NAMES=nvptx-none

目标:aarch64-linux-gnu

配置为:../configure --prefix=/usr/local/gcc --enable-bootstrap --enable-host-pie --enable-host-bind-now --enable-languages=c,c++,objc,obj-c++,fortran,lto,go --enable-shared --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-plugin --enable-initfini-array --with-linker-hash-style=gnu --enable-offload-targets=nvptx-none --disable-libgcj --without-isl --without-cloog --without-cuda-driver --enable-gnu-indirect-function --enable-cet --build=aarch64-linux-gnu --with-stage1-ldflags=' -Wl,-z,relro,-z,now' --with-boot-ldflags=' -Wl,-z,relro,-z,now' --with-multilib-list=lp64

线程模型:posix

;