RTEMS Source Builder | devel/safeclib: Add multilib bset and POSIX-compliant build recipe (!287)
YASH BHIWANIA (@Yash)
gitlab at rtems.org
Sun Jul 12 07:50:13 UTC 2026
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260712/6a74f326/attachment.htm>
More information about the bugs
mailing list