This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [RFA] Fix sysroot-tests, adding --print-sysroot


On Fri, Oct 17, 2014 at 06:19:13AM +0200, Hans-Peter Nilsson wrote:
> ld:
> 	Implement --print-sysroot in ld.
> 	* ldlex.h (enum option_values): Add entry OPTION_PRINT_SYSROOT.
> 	* lexsup.c (ld_options): Add entry for --print-sysroot.
> 	(parse_args) <OPTION_PRINT_SYSROOT>: Print sysroot and exit early.
> 
> ld/testsuite:
> 
> 	* ld-scripts/sysroot-prefix.exp: Log $ld_sysroot.  Handle sysroot
> 	== "/" as a separate sysroot-configuration with separable
> 	test-types.
> 	(sysroot_prefix_tests): Include all existing sysroot tests in
> 	sysroot == "/" tests except exclude those where a --sysroot option
> 	is not specified.
> 	* lib/ld-lib.exp (check_sysroot_available): Rewrite to use
> 	--print-sysroot instead of relying on error code from using
> 	--sysroot=...  Also, set $ld_sysroot.

OK, thanks!

-- 
Alan Modra
Australia Development Lab, IBM


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