This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFA] Fix sysroot-tests, adding --print-sysroot
- From: Alan Modra <amodra at gmail dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 17 Oct 2014 19:28:12 +1030
- Subject: Re: [RFA] Fix sysroot-tests, adding --print-sysroot
- Authentication-results: sourceware.org; auth=none
- References: <201410170419 dot s9H4JDLf012298 at ignucius dot se dot axis dot com>
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