自学内容网 自学内容网

嵌入式交叉编译:zlib

  • 下载

https://zlib.net/current/zlib.tar.gz

zlib Home Site

  • 编译
BUILD_LIBS=${HOME}/build_libs
CROSS_NAME=aarch64-mix210-linux

./autogen.sh

export CC=${CROSS_NAME}-gcc
./configure \
    --prefix=${BUILD_LIBS}

make
make install
  •  检查编译结果
$ file libz.so.1.3.1 
libz.so.1.3.1: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, not stripped


原文地址:https://blog.csdn.net/quantum7/article/details/143799550

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!