This is the mail archive of the cygwin mailing list for the Cygwin 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: [ANNOUNCEMENT] [1.7] pl-0.10.2-1 - the Parma Polyhedra Library


Charles Wilson wrote:
> Dave Korn wrote:
>> 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.)
> 
> In that case, maybe it's better to just leave the default behavior up to
> binutils and not try to over-specify using the specs file approach.

  I'm not sure.  It's the compiler that knows what it needs, which is the same
regardless of binutils' preferences, I'm leaning toward the idea that it
should be in the linker specs for the benefit of anyone using older binutils.

    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/


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