OSDN Git Service

build: Link mcaptest with -lrt
authorJohn Keeping <john@metanate.com>
Tue, 17 Nov 2015 15:21:11 +0000 (15:21 +0000)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 22 Nov 2015 13:09:22 +0000 (16:09 +0300)
profiles/health/mcap.c uses clock_gettime(3) so it needs to be linked
with -lrt on some systems.

Makefile.tools

index d849bd9..6ebbe9f 100644 (file)
@@ -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 \