YASH BHIWANIA created a merge request:
https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/287
Project:Branches: Yash/rtems-source-builder:feature/safeclib-multilib to
rtems/tools/rtems-source-builder:main
Author: YASH BHIWANIA
### Summary
This MR introduces C11 Annex K bounds-checking library support (`safeclib`) for
RTEMS 7 and resolves local compilation errors by ensuring proper architecture
macro integration and POSIX compliance.
### Key Changes
* **Added Missing Bset:** Introduced `7/devel/safeclib.bset` to cleanly wrap
the configuration and resolve local `sb-set-builder` build set errors.
* **Native Multilib Integration:** Removed manual `pkg-config` extraction
hacks. The build now relies on native RTEMS hardware compilation macros
(`%{host_cflags}` and `%{host_ldflags}`) exported directly via `%include
rtems-bsp.cfg`.
* **POSIX Compliance:** Replaced GNU-specific `sed -i` syntax with portable
file redirection (`sed 's/ tests//g' Makefile > Makefile.tmp && mv Makefile.tmp
Makefile`) for broad host system compatibility.
* **Bare-Metal Linker Fix:** Safely stripped the `tests` directory from the
Makefile target to prevent `syslog` linker errors on bare-metal RTEMS targets
while ensuring full header and static library (`libsafec.a`) installation.
### Verification
* Successfully compiled and verified locally on `sparc-rtems7` (`sparc/erc32`).
* Verified multilib library and header installation paths in the toolchain
prefix.
##
--
View it on GitLab:
https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/287
You're receiving this email because of your account on gitlab.rtems.org.
Unsubscribe from this thread:
https://gitlab.rtems.org/-/sent_notifications/4-8x1b3rfcwrlqg346juegnwr5f-e/unsubscribe
| Manage all notifications: https://gitlab.rtems.org/-/profile/notifications |
Help: https://gitlab.rtems.org/help
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs