Charles Wilson wrote:
> Dave Korn wrote:
>> Charles Wilson wrote:
>>> Roberto Bagnara wrote:
>>>
>>>> concerning the need to link with "LDFLAGS=-Wl,--enable-auto-import",
>>>> I am wondering if there is something we could do upstream to simplify
>>>> the life of Cygwin users.  If so, please let me know.
>>> In gcc-4.x --enable-auto-import is the default.
>>   No, right now it's the default setting in binutils CVS, but I haven't added
>> it to the gcc specs.  (Guess I should for the benefit of those with older
>> linkers).
> 
> You're right; I was confused.  I was thinking of the binutils change.
> However, I wonder about the gcc thing.  If the specs file includes
> -Wl,--enable-auto-import, and I pass -Wl,--disable-auto-import on the
> command line, who wins?


  I just don't know.  I suspect it may even depend; e.g. DRIVER_SELF_SPECS
gets applied early, LINK_SPEC later, but I haven't experimented.  (On the
actual ld command-line itself, later options always override earlier ones.)

    cheers,
      DaveK

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to