From 6c81f8f28166b52693bb1d49c0ac890d70828dcf Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 30 Oct 2019 11:28:08 +0100 Subject: [PATCH] raspi: add -lrt to fix build --- port/raspi/Makefile | 3 +++ port/raspi/btstack_config.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/port/raspi/Makefile b/port/raspi/Makefile index d69535afc..c7642aacb 100644 --- a/port/raspi/Makefile +++ b/port/raspi/Makefile @@ -30,6 +30,9 @@ CFLAGS += -g -Wall -Werror \ -I$(BTSTACK_ROOT)/chipset/bcm \ -I${BTSTACK_ROOT}/3rd-party/tinydir +# add 'real time' lib for clock_gettime +LDFLAGS += -lrt + VPATH += ${BTSTACK_ROOT}/platform/posix VPATH += ${BTSTACK_ROOT}/platform/embedded diff --git a/port/raspi/btstack_config.h b/port/raspi/btstack_config.h index e07c463b3..9b62948e0 100644 --- a/port/raspi/btstack_config.h +++ b/port/raspi/btstack_config.h @@ -9,7 +9,6 @@ #define HAVE_MALLOC #define HAVE_POSIX_FILE_IO #define HAVE_BTSTACK_STDIN -#define HAVE_POSIX_TIME // BTstack features that can be enabled #define ENABLE_BLE