[arch-dev-public] Default LDFLAGS for official packages
Allan McRae
allan at archlinux.org
Wed Aug 12 05:57:34 EDT 2009
Allan McRae wrote:
> Thomas Bächler wrote:
>> Allan McRae schrieb:
>>> Thomas Bächler wrote:
>>>> I think we should agree on a default LDFLAGS setting for our
>>>> official packages. In the pacman signoff thread, it was suggested
>>>> to use -Wl,--as-needed and later also -Wl,--no-undefined (and
>>>> more). Can we compose a default LDFLAGS line that we all should use?
>>>>
>>>
>>> I will again propose:
>>> -Wl,--hash-style=gnu -Wl,--as-needed
>>>
>>> Last time I tried, --no-undefined broke quite a few packages so I
>>> don't think it is ready for general use yet.
>>
>> Doesn't --hash-style=gnu break compatibility with closed-source and
>> legacy binaires? Shouldn't this be --hash-style=both? Not an expert
>> here, just stating what I think to remember.
>
> The linker handles both hash-types so this is not an issue. Note we
> already have hash-style=both as the default for our gcc.
Another LDFLAG that should be safe is -Wl,--sort-common
Allan
More information about the arch-dev-public
mailing list