* Dridi Boukelmoune:
It loos like somebody had already suggested moving away from
LDFLAGS,
using LDLINKFLAGS instead, and the patch was merged 2 days after I
started this thread:
https://todo.sr.ht/~sircmpwn/hare/784
So that's one conflict gone, but there is still no RPM macro support for
distro-wide linker flags for toolchains not relying on LDFLAGS in their
current form.
My %{ld_ldflags} macro could be taking the problem from the wrong end: we
could instead have some %{link_ldflags} macro from which %{build_ldflags}
would be derived, turning command line arguments into `-Wl` options and
adding GCC-specific -specs options.
Do you know if LDLINKFLAGS comes before -shared or after?
If we use LDLINKFLAGS to enable PIE, it has to come first, so that
-shared overrides it. We can handle this with -specs independently of
order, but not directly in ld.
Thanks,
Florian