build: libcheck may require linking against rt
authorMatthew Waters <matthew@centricular.com>
Thu, 23 Apr 2020 05:46:48 +0000 (15:46 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 23 Apr 2020 05:55:46 +0000 (15:55 +1000)
commita4caf7b254a03c13c85cb2aafcab3232ceb53734
tree57326e43ecd8d9d4664c6c8b08bd21ce300312b5
parent358d4e991ab3d35a100395ca1bed397c9d00ff50
build: libcheck may require linking against rt

In static linking scenarios, this is required to avoid this error
building tests:

/work/prefix/lib/libgstcheck-1.0.a(check_run.c.o): In function `tcase_run_tfun_fork':
/work/gstreamer/_builddir/../../../src/gstreamer/libs/gst/check/libcheck/check_run.c:476: undefined reference to `timer_create'
/work/gstreamer/_builddir/../../../src/gstreamer/libs/gst/check/libcheck/check_run.c:483: undefined reference to `timer_settime'
/work/gstreamer/_builddir/../../../src/gstreamer/libs/gst/check/libcheck/check_run.c:493: undefined reference to `timer_delete'
/work/prefix/lib/libgstcheck-1.0.a(check.c.o): In function `check_get_clockid':
/work/gstreamer/_builddir/../../../src/gstreamer/libs/gst/check/libcheck/check.c:628: undefined reference to `timer_create'
/work/gstreamer/_builddir/../../../src/gstreamer/libs/gst/check/libcheck/check.c:629: undefined reference to `timer_delete'

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/447>
pkgconfig/gstreamer-check-uninstalled.pc.in
pkgconfig/gstreamer-check.pc.in
pkgconfig/meson.build