#!/bin/bash
LogFile="cross_log.log"
#TargetType=mipsel-softfloat-linux-gnu
TargetType=mipsel-softfloat-linux-gnu
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------"
#export CFLAGS="-march=k8 -O2 -pipe"
#export CXXFLAGS="${CFLAGS}"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#--------------------------------------------------------------
#LDFLAGS="-Wl,-O1"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#LDFLAGS="-Wl,-O2"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=both -s"
#export LDFLAGS="-Wl,-O2,--as-needed"
#
#echo "Start CrossDev -t $TargetType --kernel 2.6.19-r5" >> $LogFile
echo "Start CrossDev -t $TargetType " >> $LogFile
date >> $LogFile
#time crossdev -t $TargetType --kernel 2.6.19-r5 >> $LogFile 2>&1
export EXTRA_ECONF="--enable-languages=c"
time USE="-*" crossdev -t $TargetType >> $LogFile 2>&1
date >> $LogFile
echo "End of CrossDev -t $TargetType" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------"
LogFile="cross_log.log"
#TargetType=mipsel-softfloat-linux-gnu
TargetType=mipsel-softfloat-linux-gnu
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------"
#export CFLAGS="-march=k8 -O2 -pipe"
#export CXXFLAGS="${CFLAGS}"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#--------------------------------------------------------------
#LDFLAGS="-Wl,-O1"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#LDFLAGS="-Wl,-O2"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=both -s"
#export LDFLAGS="-Wl,-O2,--as-needed"
#
#echo "Start CrossDev -t $TargetType --kernel 2.6.19-r5" >> $LogFile
echo "Start CrossDev -t $TargetType " >> $LogFile
date >> $LogFile
#time crossdev -t $TargetType --kernel 2.6.19-r5 >> $LogFile 2>&1
export EXTRA_ECONF="--enable-languages=c"
time USE="-*" crossdev -t $TargetType >> $LogFile 2>&1
date >> $LogFile
echo "End of CrossDev -t $TargetType" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------" >> $LogFile
echo "---------"
转载于:https://blog.51cto.com/axlrose/1294638