RTEMS Source Builder | devel/safeclib: Update to dynamic pkg-config and bypass tests (!269)
YASH BHIWANIA (@Yash)
gitlab at rtems.org
Mon Jun 15 22:30:16 UTC 2026
YASH BHIWANIA created a merge request: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/269
Project:Branches: Yash/rtems-source-builder:main to rtems/tools/rtems-source-builder:main
Author: YASH BHIWANIA
## Summary
### devel/safeclib: Fix multi-architecture build and syslog linker error
This update makes the `safeclib` recipe architecture-independent and fixes a fatal linker error encountered during bare-metal cross-compilation.
#### Key Changes:
* **Dynamic BSP Flag Detection:** Replaced the hardcoded `rtems-bsps` placeholder. The recipe now dynamically constructs the specific package name (e.g., `%{_host}-$(basename %{with_rtems_bsp})`) during the `%build` phase. This allows `pkg-config` to correctly extract the compilation and linking flags for any target architecture (such as SPARC or RISC-V).
* **Bypass Test Suite Execution:** On bare-metal targets where Stack Smashing Protection (SSP) is enabled, the build fails while linking the performance tests due to an `undefined reference to syslog`. Since `syslog` is missing on these lightweight embedded targets, `sed` is used to strip the `tests` directory from the generated `Makefile` targets. This prevents the broken test suite from building while ensuring the core library, headers, and `.pc` files install correctly.
#### Testing:
* Successfully verified on `sparc/erc32`
* Successfully verified on `riscv/griscv`
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/269
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/20260615/68db8b5b/attachment-0001.htm>
More information about the bugs
mailing list