On Mon, Apr 17, 2023 at 11:38 AM Florian Weimer <fweimer(a)redhat.com> wrote:
* Dridi Boukelmoune:
>> The hare toolchain should not use LDFLAGS if it doesn't use a
>> GCC-compatible compiler driver.
>>
>> But I don't see where it does that. Do you have a more precise
>> reference?
>
> See the man page:
>
>
https://git.sr.ht/~sircmpwn/hare/tree/master/item/docs/hare.scd
Ah, looked at the wrong repository. I think we can't use LDFLAGS at all
with hare. Its startup probably won't support all our hardening.
At least haredoc (built by hare) runs just fine on my machine. And
hare was built with the same %{ld_ldflags}.
Please note that the way my %{ld_ldflags} macro works, only "straight"
arguments are passed and those coming from specs (redhat-hardened-ld
and redhat-annobin-cc1) are simply ignored.