Skip to contentSkip to conversation

build: Link mcaptest with -lrt

PATCH Applied John Keeping 2 participants 2 messages Nov 17, 2015 – Nov 22, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index d849bd9..6ebbe9f 100644
@@ -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
#1 lore raw

Hi John,

Quoted 5 lines · John Keeping

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(-)

Applied. Thanks.

Johan