Fix cross compiler detection with dash shell

Based on patch by Andreas Färber.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@808 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2010-07-03 08:07:59 +00:00
parent f361b7cf09
commit 6e3c34c7b5

View File

@@ -88,7 +88,7 @@ select_prefix()
{
for TARGET in ${1}-linux-gnu- ${1}-elf- ${1}-eabi-
do
if type -p ${TARGET}gcc > /dev/null
if type ${TARGET}gcc > /dev/null 2>&1
then
return
fi