This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: other/17466: Testsuites in gcc override LD_LIBRARY_PATH



On Nov 17, 2004, at 7:56 PM, H. J. Lu wrote:


I updated the patch. We don't need to set LD_LIBRARY_PATH in
lib/gcc-dg.exp. We should do it in lib/gcc.exp for C. Other
languages set it themselves.


H.J. --- 2004-11-17 H.J. Lu <hongjiu.lu@intel.com>

	PR other/17466:
	* lib/gcc-defs.exp (${tool}_set_ld_library_path): New procedure.
	* g++.dg/compat/compat.exp (ld_library_path): Renamed to
	gcc_ld_library_path.
	(compat-fix-library-path): Removed.
	(compat-use-alt-compiler): Call ${tool}_set_ld_library_path to
	switch library path.
	(compat-use-tst-compiler): Likewise.
	* lib/g++.exp (g++_link_flags): Don't use global
	ld_library_path. Call ${tool}_set_ld_library_path to set up
	LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
	LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and
	DYLD_LIBRARY_PATH.
	* lib/gcc.exp (gcc_init): Likewise.
	* lib/gfortran.exp (gfortran_link_flags): Likewise.
	* lib/objc.exp (objc_target_compile): Likewise.
	* lib/gcc-dg.exp: Don't set LD_LIBRARY_PATH, SHLIB_PATH,
	LD_LIBRARYN32_PATH, LD_LIBRARY64_PATH, LD_LIBRARY_PATH_32,
	LD_LIBRARY_PATH_64 and DYLD_LIBRARY_PATH.

You also forgot about treelang and also the library testsuites.


-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]