2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 21 Oct 2004 15:20:35 +0000 (15:20 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 21 Oct 2004 15:20:35 +0000 (15:20 +0000)
* genscripts.sh (libpath.exp): Really generate for first
emulation only.

ld/ChangeLog
ld/genscripts.sh

index 6981738203deb51f56d2918a6231da3539fee50e..8909eaa341d46c01d9803942e97d2d56d6886b62 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * genscripts.sh (libpath.exp): Really generate for first
+       emulation only.
+
 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
index 7f8db332ee430dfd4cc8248f6ce2ab0a81f07cdd..76d5dd2560e8db96d7f8f8b14dda4b17125152f1 100755 (executable)
@@ -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
This page took 0.026682 seconds and 4 git commands to generate.