[arch/linux] sys_time: link against librt for glibc < 2.17

This commit is contained in:
Felix Ruess
2015-03-03 21:52:05 +01:00
parent b1493c416c
commit b6c9619ec7
4 changed files with 16 additions and 0 deletions
+4
View File
@@ -69,6 +69,10 @@ endif
# Systime
#
$(TARGET).srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
ifeq ($(ARCH), linux)
# seems that we need to link against librt for glibc < 2.17
$(TARGET).LDFLAGS += -lrt
endif
#
+4
View File
@@ -30,6 +30,10 @@ ifneq ($(SYS_TIME_LED),none)
endif
COMMON_SETUP_CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
COMMON_SETUP_SRCS += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
ifeq ($(ARCH), linux)
# seems that we need to link against librt for glibc < 2.17
$(TARGET).LDFLAGS += -lrt
endif
COMMON_SETUP_CFLAGS += -DUSE_LED
@@ -71,6 +71,10 @@ endif
# Sys-time
#
$(TARGET).srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
ifeq ($(ARCH), linux)
# seems that we need to link against librt for glibc < 2.17
$(TARGET).LDFLAGS += -lrt
endif
#
# InterMCU & Commands
+4
View File
@@ -54,6 +54,10 @@ ifneq ($(SYS_TIME_LED),none)
endif
COMMON_TEST_CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
COMMON_TEST_SRCS += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
ifeq ($(ARCH), linux)
# seems that we need to link agains librt for glibc < 2.17
$(TARGET).LDFLAGS += -lrt
endif
COMMON_TEST_CFLAGS += -DUSE_LED