+2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * genscripts.sh: Create tmpdir/libpath.exp.
+
2003-05-30 Nick Clifton <nickc@redhat.com>
* emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
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} "*)
+ test -d tmpdir || mkdir tmpdir
+ rm -f tmpdir/libpath
+ echo "set libpath \"${LIB_PATH}\"" | sed -e 's/:/ /g' > tmpdir/libpath.exp
+ ;;
+esac
+
# Generate 5 or 6 script files from a master script template in
# ${srcdir}/scripttempl/${SCRIPT_NAME}.sh. Which one of the 5 or 6
# script files is actually used depends on command line options given
+2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/default.exp: Load tmpdir/libpath.exp.
+ (gcc_ld_flag): Set from $libpath.
+
2003-05-27 Jason Thorpe <thorpej@wasabisystems.com>
* ld-elf/elf.exp: Use if_elf_format.
}
set gcc_ld_flag "-B[pwd]/tmpdir/ld/"
+# load the linker path
+load_lib tmpdir/libpath.exp
+
+foreach dir $libpath {
+ set gcc_ld_flag "$gcc_ld_flag -L$dir"
+}
+
# The mips64-*-linux-gnu compiler defaults to the N32 ABI after
# installed, but to the O32 ABI in the build tree, because of some
# specs-file hacks. Make sure we use an ABI that is compatible with