Re: New %{ld_ldflags} macro?

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

 



On Mon, Apr 17, 2023 at 11:51 AM Jan Drögehoff <sentrycraft123@xxxxxxxxx> wrote:
>
> The problem is that Hare directly passes LDFLAGS on to ld, expecting them to be flags for the linker.
> Instead LDFLAGS is commonly used for compiler flags for linking, only actually passing on -Wl flags.
>
> `%global build_ldflags %(echo %{build_ldflags} | sed "s/-Wl,//g")` may be a simple drop-in solution for this, but I don't know if ld will accept the comma separated format or if thats something that the compiler will need to implement.
>
> This may be worth mentioning to devault to figure out if this is worth including in hare itself

I initially had a shell one-liner but you need more than one sed to
both get rid of --spec options and -Wl commas.

Dridi
_______________________________________________
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