Optimizing Prelink for speed.

This commit is contained in:
Kolan Sh 2012-11-25 00:45:32 +04:00
parent b74322b19e
commit 3da7ef77b3
1 changed files with 11 additions and 11 deletions

View File

@ -190,16 +190,16 @@ fi
let STAGE_CNT++
# disable prelink
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: disable prelink ======="
if [ `which prelink 2>/dev/null` ]; then
$NICE_CMD prelink -ua 2>/dev/null
[ 0 -ne $? ] && echo "Stage $STAGE: prelink disabling failed ;-( =======" && exit $STAGE
fi
let STAGE++
fi
let STAGE_CNT++
#if [ $STAGE_CNT -eq $STAGE ]; then
# echo "======= STAGE $STAGE: disable prelink ======="
# if [ `which prelink 2>/dev/null` ]; then
# $NICE_CMD prelink -ua 2>/dev/null
# [ 0 -ne $? ] && echo "Stage $STAGE: prelink disabling failed ;-( =======" && exit $STAGE
# fi
#
# let STAGE++
#fi
#let STAGE_CNT++
# Test for necessity to upgrade toolchain packages
if [ $STAGE_CNT -eq $STAGE ]; then
@ -449,7 +449,7 @@ let STAGE_CNT++
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Prelink libraries ======="
if [ `which prelink 2>/dev/null` ]; then
$NICE_CMD prelink -avfmR
$NICE_CMD prelink -avfmRq
[ 0 -ne $? ] && echo "Stage $STAGE: prelink -avfmR failed ;-( =======" && exit $STAGE
fi