aarch64 gcc 10.3.1 源码编译 qemu-4.2.0

yum install -y  flex
yum install -y  bison
yum install -y  texinfo
yum install -y  perl-podlators
yum install -y  kernel
yum install -y  chrpath
yum install -y  gettext
yum install -y  python-sphinx
yum install -y  zlib-devel
yum install -y  gtk3-devel
yum install -y  gnutls-devel
yum install -y  numactl-devel
yum install -y  device-mapper-multipath-devel
yum install -y  rdma-core-devel
yum install -y  libcap-devel
yum install -y  libcap-ng-devel
yum install -y  cyrus-sasl-devel
yum install -y  libaio-devel
yum install -y  usbredir-devel >= 0.5.2
yum install -y  libseccomp-devel >= 2.3.0
yum install -y  systemd-devel
yum install -y  libiscsi-devel
yum install -y  snappy-devel
yum install -y  lzo-devel
yum install -y  ncurses-devel
yum install -y  libattr-devel
yum install -y  libcurl-devel
yum install -y  libjpeg-devel
yum install -y  libpng-devel
yum install -y  brlapi-devel
yum install -y  pixman-devel
yum install -y  libusbx-devel
yum install -y  bzip2-devel
yum install -y  libepoxy-devel
yum install -y  libtasn1-devel
yum install -y  libxml2-devel
yum install -y  libudev-devel
yum install -y  pam-devel
yum install -y  perl-Test-Harness
yum install -y  python3-devel
yum install -y  librbd-devel
yum install -y  krb5-devel
yum install -y  libssh-devel
yum install -y  glib2
yum install -y  libfdt-devel
yum install -y  virglrenderer-devel

export CFLAGS="-fPIE -DPIE -fPIC -Wno-array-bounds"
export LDFLAGS="-Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack"


./configure \
    --prefix=/usr/local   \
    --target-list=aarch64-softmmu     \
    --extra-cflags="-fPIE -DPIE -fPIC"    \
    --extra-ldflags="-Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack" \
    --python=/usr/bin/python3 \
    --disable-strip \
    --disable-slirp  \
    --enable-gtk \
    --enable-docs \
    --enable-guest-agent \
    --enable-pie \
    --enable-numa \
    --enable-mpath \
    --disable-libnfs \
    --disable-bzip2 \
    --enable-kvm \
    --enable-tcg \
    --enable-rdma \
    --enable-linux-aio \
    --enable-cap-ng \
    --enable-vhost-user \
    --enable-modules \
    --enable-libssh \
    --enable-fdt \
    --enable-virglrenderer \
    --enable-cap-ng \
    --enable-libusb \
    --disable-bluez \
    --disable-dmg \
    --disable-qcow1 \
    --disable-vdi \
    --disable-vvfat \
    --disable-qed \
    --disable-parallels \
    --disable-sheepdog \
    --disable-capstone \
    --disable-smartcard
    
    
numactl -N 0-3 make -j64    

make install
 

你可能感兴趣的:(qemu)