步驟如下:
$ cd $ wget http://ftp.gnu.org/gnu/glibc/glibc-2.20.tar.gz $ tar xvf glibc-2.20.tar.gz $ mkdir glibc-2.20/obj-glibc $ cd glibc-2.20/obj-glibc $ export CC=arm-linux-gcc $ export CXX=arm-linux-g++ $ export CPP="arm-linux-gcc -E" $ export LD=arm-linux-ld $ export AR=arm-linux-ar $ export NM=arm-linux-nm $ export AS=arm-linux-as $ export STRIP=arm-linx-strip $ export RANLIB=arm-linux-ranlib $ export ARCH=arm $ ../configure --prefix=/opt/gcc-4.8 --target=arm-linux --host=arm-linux --build=arm --disable-profile --enable-add-ons --with-__thread --enable-threads=posix --enable-multilib --without-cvs --enable-shared --without-gd --libdir=/opt/gcc-4.8/lib libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes $ make $ sudo make install