mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user