> On 17 Nov 2016, at 21:19, Jeff Law <l...@redhat.com> wrote:
> 
> On 11/08/2016 05:49 PM, Iain Sandoe wrote:
>> 
>>> On 8 Nov 2016, at 13:39, Mike Stump <mikest...@comcast.net> wrote:
>>> 
>>> On Nov 8, 2016, at 1:05 PM, Iain Sandoe <iain_san...@mentor.com>
>>> wrote:
>>>> 
>>>> Simple for the simple case is already part of my patch, but
>>>> capability for the expert and non-simple case is also present,
>>> 
>>> I'm trying to ask a specific question, what does the patch allow
>>> that can't be done otherwise?  Kinda a trivial question, and I
>>> don't see any answer.
>>> 
>>> I'm not looking for, it allows it to work, or it makes the expert
>>> case work.  I'm look for the specific question, and the specific
>>> information you want, and why ld -v doesn't get it.
>> 
>> ld -v gets it when you can execute ld. It doesn’t get it when the
>> $host ld is not executable on $build.
> Exactly!
> 
>> Providing the option to give the version allows that without
>> requiring the complexity of other (possibly valid) solutions.  If you
>> know that you’re building (my patched) ld64-253.9 for powerpc-darwin9
>> (crossed from x86-64-darwin14) it’s easy, just put —with-ld64=253.9
>> ..
>> 
>> I think we’ve debated this enough - I’m OK with keeping my extra
>> facility locally and will resubmit the patch with it removed in due
>> course, Iain
> Your call. But ISTM the ability to specify the linker version or even better, 
> its behaviour is a notable improvement for these crosses.

Thanks, at least I’m not going completely crazy ;-)

However, I’d already revised the patch to take the approach Mike wanted, and 
thus didn’t add the documentation that Joseph noted was missing.  It takes 
quite a while to re-test this across the Darwin patch, so I’m going to put 
forward the amended patch (as Mike wanted it) and we can discuss ways to deal 
with native and Canadian crosses later.

FWIW, it’s possible (but rather kludgy) with the attached patch to override 
gcc_gc_ld64_version on the make line to build a native/Canadian cross with a 
“non-standard” ld64 version (I did at least build a native X powerpc-darwin9 on 
x86_64-darwin14 which was not a brick).

OK now for trunk?
open branches?
Iain

    gcc/
        * configure.ac (with-ld64): New var, set for Darwin, set on
        detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
        * darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
        * darwin10.h(DEF_LD64): Update for this target version.
        * darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
        (DEF_LD64): Update for this target version.


Attachment: PR71767-part2-revised.patch
Description: Binary data

Reply via email to