build: Link mcaptest with -lrt
Subsystems (2)
PATCH 1/1 build: Link mcaptest with -lrt
profiles/health/mcap.c uses clock_gettime(3) so it needs to be linked with -lrt on some systems.
--- Makefile.tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.tools +1 -1
@@ -294,7 +294,7 @@ tools_mcaptest_SOURCES = tools/mcaptest.c \ btio/btio.h btio/btio.c \ src/log.c src/log.h \ profiles/health/mcap.h profiles/health/mcap.c -tools_mcaptest_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@ +tools_mcaptest_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@ -lrt tools_bneptest_SOURCES = tools/bneptest.c \ btio/btio.h btio/btio.c \
Signature · 1 line
2.6.3.462.gbe2c914
Johan Hedberg
AppliedHi John,
Quoted 5 lines · John Keeping
profiles/health/mcap.cusesclock_gettime(3)so it needs to be linked with -lrt on some systems.--- Makefile.tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied. Thanks.
Johan