RTEMS Source Builder | devel/safeclib: Update to dynamic pkg-config and bypass tests (!269)
YASH BHIWANIA (@Yash)
gitlab at rtems.org
Sat Jul 4 12:35:42 UTC 2026
YASH BHIWANIA commented on a discussion on rtems/config/devel/safeclib-3.9.1-1.cfg: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/269#note_153767
> + BSP_LIBS=$(pkg-config --libs ${PKG_NAME})
> +
> + ./configure \
> + --host=%{_host} \
> + --prefix=%{_prefix} \
> + --disable-shared \
> + --enable-static \
> + --disable-extensions \
> + --disable-doc \
> + CFLAGS="${BSP_CFLAGS}" \
> + LDFLAGS="${BSP_LIBS} -lrtemsdefaultconfig" \
> + CC="%{_host}-gcc"
> +
> + # HACK: Erase 'tests' from the Makefile's target directories
> + # This safely bypasses the syslog linker error without skipping headers
> + sed -i 's/ tests//g' Makefile
@chris how about dropping the -i flag entirely and instead, we use standard redirection like : we tell sed to output the fixed text into a temporary file, and then we overwrite the original file?
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/269#note_153767
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-eqn2cy6q2ear77xjynbx7ghkl-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/20260704/1c10bb45/attachment-0001.htm>
More information about the bugs
mailing list