RTEMS | build: Provide LDFLAGS for pkg-config (!425)

Sebastian Huber (@sebhub) gitlab at rtems.org
Sat Feb 15 05:45:48 UTC 2025



Sebastian Huber created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/425

Project:Branches: sebhub/rtems:build-provide-ldflags to rtems/rtos/rtems:main
Author:   Sebastian Huber
Assignee: Sebastian Huber



## Summary

build: Provide LDFLAGS for pkg-config

Some pkg-config variants perform transformations on the --libs options.
This may lead to completely broken linker options:

https://github.com/pkgconf/pkgconf/issues/371

Provide the LDFLAGS as a variable.  Do not add the ABI_FLAGS to LDFLAGS
since they are already contained in the CFLAGS.  The linker command line
should include the compiler flags so that link-time optimization works
properly.

Update #5169.


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/425
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250215/0a942daf/attachment.htm>


More information about the bugs mailing list