diff options
Diffstat (limited to 'testsuite/functions.sh')
-rwxr-xr-x | testsuite/functions.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/testsuite/functions.sh b/testsuite/functions.sh index 89d996a..5e98725 100755 --- a/testsuite/functions.sh +++ b/testsuite/functions.sh @@ -3,19 +3,13 @@ CC="${CC:-gcc} ${LINKOPTS}" CCLINK=${CCLINK:-${CC} -Wl,--dynamic-linker=`echo ./ld*.so.*[0-9]`} CXX="${CXX:-g++} ${LINKOPTS}" CXXLINK=${CXXLINK:-${CXX} -Wl,--dynamic-linker=`echo ./ld*.so.*[0-9]`} -PRELINK=${PRELINK:-../src/prelink -c ./prelink.conf -C ./prelink.cache --ld-library-path=. --dynamic-linker=`echo ./ld*.so.*[0-9]` --rtld=../src/rtld/prelink-rtld} +PRELINK=${PRELINK:-../src/prelink -c ./prelink.conf -C ./prelink.cache --ld-library-path=. --dynamic-linker=`echo ./ld*.so.*[0-9]`} # force deterministic timestamps to make double prelinking # to produce unmodified binary. PRELINK_TIMESTAMP=${PRELINK_TIMESTAMP:-12345678} export PRELINK_TIMESTAMP -LDD=${LDD:-../src/rtld/prelink-rtld} -STRIP=${STRIP:-strip} -HOST_CC=${HOST_CC:-$CC} -READELF=${READELF:-readelf} -RUN=${RUN:-env} -RUN_HOST=${RUN_HOST:-env} srcdir=${srcdir:-`dirname $0`} savelibs() { for i in $LIBS $BINS; do cp -p $i $i.orig; done @@ -24,11 +18,11 @@ comparelibs() { for i in $LIBS $BINS; do cp -p $i $i.new echo $PRELINK -u $i.new - $RUN_HOST $PRELINK -u $i.new || exit + $PRELINK -u $i.new || exit cmp -s $i.orig $i.new || exit rm -f $i.new echo $PRELINK -y $i \> $i.new - $RUN_HOST $PRELINK -y $i > $i.new || exit + $PRELINK -y $i > $i.new || exit cmp -s $i.orig $i.new || exit rm -f $i.new done |