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.
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs