Don't bother looking for eu-readelf and readelf on Mac OS X (the 'which' command there prints its error message to stdout, so it's hard to tell that it failed).

This commit is contained in:
bryner%brianryner.com 2003-11-13 19:43:23 +00:00
Родитель 23ee16318a
Коммит f9f4b8db03
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -136,6 +136,9 @@ fi
# Check whether we have 'eu-readelf' or 'readelf' available.
# If we do, it will give more accurate symbol sizes than nm.
if [ $OSTYPE == "Darwin" ]; then
USE_READELF=
else
READELF_PROG=`which eu-readelf 2>/dev/null`
if test "$READELF_PROG"; then
USE_READELF=1
@ -153,6 +156,7 @@ else
USE_READELF=
fi
fi
fi
RAWTSVFILE="$MYTMPDIR/raw.tsv"
if test "$USE_READELF"; then

Просмотреть файл

@ -135,6 +135,9 @@ fi
# Check whether we have 'eu-readelf' or 'readelf' available.
# If we do, it will give more accurate symbol sizes than nm.
if [ $OSTYPE == "Darwin" ]; then
USE_READELF=
else
READELF_PROG=`which eu-readelf 2>/dev/null`
if test "$READELF_PROG"; then
USE_READELF=1
@ -152,6 +155,7 @@ else
USE_READELF=
fi
fi
fi
#
# Find all relevant files.