mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
[arch/linux] sys_time: link against librt for glibc < 2.17
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user