[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ld/genscripts.sh: test: argument expected
From: |
Alexander Klimov |
Subject: |
ld/genscripts.sh: test: argument expected |
Date: |
Wed, 15 Jun 2005 12:14:57 +0300 (IDT) |
Hi.
Trying to build arm-elf (from sparc-solaris) I got the following
error:
LIB_PATH='' /bin/sh ../../binutils-2.16.1/ld/genscripts.sh
../../binutils-2.16.1/ld /home/sw/ask/gnuarm/lib
"/home/sw/ask/gnuarm" sparc-sun-solaris2.8 arm-unknown-elf arm-elf
"armelf" "/usr/local/lib /lib /usr/lib" no armelf "arm-elf"
../../binutils-2.16.1/ld/genscripts.sh: test: argument expected
It can be fixed with the following patch:
*** binutils-2.16.1/ld/emultempl/armelf.em~ Wed Jun 15 11:31:27 2005
--- binutils-2.16.1/ld/emultempl/armelf.em Wed Jun 15 12:08:31 2005
***************
*** 25,27 ****
#
! test -z $TARGET2_TYPE && TARGET2_TYPE="rel"
cat >>e${EMULATION_NAME}.c <<EOF
--- 25,27 ----
#
! test -z "$TARGET2_TYPE" && TARGET2_TYPE="rel"
cat >>e${EMULATION_NAME}.c <<EOF
--
Regards,
ASK
- ld/genscripts.sh: test: argument expected,
Alexander Klimov <=