“How to build glibc”的版本间的差异

来自个人维基
跳转至: 导航搜索
(以“0. Preparation Install cross-compiler on /opt /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu export PATH=/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-g...”为内容创建页面)
 
第14行: 第14行:
 
mkdir /opt/glibc
 
mkdir /opt/glibc
 
cd /opt/glibc
 
cd /opt/glibc
~/glibc-2.20/configure arm-linux --target=arm-linux --prefix=/opt/glibc --host=aarch64-linux-gun
+
~/glibc-2.31/configure arm-linux --target=arm-linux --prefix=/opt/glibc --host=aarch64-linux-gun
 
</source>
 
</source>
 
if succeed, Makefile will be generated.
 
if succeed, Makefile will be generated.

2020年3月16日 (一) 14:55的版本

0. Preparation
Install cross-compiler on /opt
/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu
export PATH=/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/:$PATH
export CC=aarch64-linux-gnu-gcc

1. download glibc
http://mirrors.nju.edu.cn/gnu/libc/
get glibc-2.31.tar.gz
tar -xvf glibc-2.31.tar.gz

2. make

mkdir /opt/glibc
cd /opt/glibc
~/glibc-2.31/configure arm-linux --target=arm-linux --prefix=/opt/glibc --host=aarch64-linux-gun

if succeed, Makefile will be generated.

make