Re: New %{ld_ldflags} macro?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* 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
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux