📄 buildtoolchain-step12-rebuildglibc.txt
字号:
#!/bin/bash
# buildtoolchain-step12-rebuildglibc v1.2 08/13/02
# www.embeddedlinuxinterfacing.com
#
# The original location of this script is
# http://www.embeddedlinuxinterfacing.com/chapters/03/buildtoolchain
#
# Copyright (C) 2001 by Craig Hollabaugh
# See buildtoolchain script for General Public License statement
if [ ! $BUILDTOOLCHAINENV ]
then
. ./buildtoolchain-environment $1
fi
# Step 12 - Build a Cross-Compiled Version of glibc
#
date "+%x %X - Started: $0"
date "+%x %X - Started: $0" >> $SRCFILELOC/output-build-status
cd $BUILDLOC
cd $GLIBVERSION
cd ../$TARGET-glibc
if [ $ARCH = "arm" ]
then
CC=$TARGET-gcc ../$GLIBVERSION/configure $TARGET --build=i586-linux \
--prefix=/ \
--enable-add-ons
fi
if [ $ARCH = "ppc" ]
then
CC=$TARGET-gcc CFLAGS="-msoft-float -D_SOFT_FLOAT -mcpu=860" \
../$GLIBVERSION/configure $TARGET --build=i586-linux \
--prefix=/ \
--enable-add-ons \
--without-fp
fi
#don't do a make install here, the prefix is /,
#installing will trash this computer's /lib directory
make
mkdir $BUILDLOC/$TARGET-lib
make install_root=$BUILDLOC/$TARGET-lib install
date "+%x %X - Completed: $0"
date "+%x %X - Completed: $0" >> $SRCFILELOC/output-build-status
#beep twice, we are done
echo -e "\07"
echo -e "\07"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -