From: H.J. Lu Date: Thu, 21 Oct 2004 15:20:35 +0000 (+0000) Subject: 2004-10-21 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc4f76f8692f3a67a06f0d39d555ccc368166021;p=binutils-gdb.git 2004-10-21 H.J. Lu * genscripts.sh (libpath.exp): Really generate for first emulation only. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 6981738203d..8909eaa341d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2004-10-21 H.J. Lu + + * genscripts.sh (libpath.exp): Really generate for first + emulation only. + 2004-10-19 Danny Smith * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify diff --git a/ld/genscripts.sh b/ld/genscripts.sh index 7f8db332ee4..76d5dd2560e 100755 --- a/ld/genscripts.sh +++ b/ld/genscripts.sh @@ -191,13 +191,12 @@ fi LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'` # We need it for testsuite. -case " $EMULATION_LIBPATH " in - *" ${EMULATION_NAME} "*) +set $EMULATION_LIBPATH +if [ "x$1" = "x$EMULATION_NAME" ]; then test -d tmpdir || mkdir tmpdir - test -f tmpdir/libpath.exp || \ + rm -f tmpdir/libpath.exp echo "set libpath \"${LIB_PATH}\"" | sed -e 's/:/ /g' > tmpdir/libpath.exp - ;; -esac +fi # Generate 5 or 6 script files from a master script template in # ${srcdir}/scripttempl/${SCRIPT_NAME}.sh. Which one of the 5 or 6