mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
[arch/linux] sys_time: link against librt for glibc < 2.17
This commit is contained in:
@@ -69,6 +69,10 @@ endif
|
|||||||
# Systime
|
# Systime
|
||||||
#
|
#
|
||||||
$(TARGET).srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
|
$(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
|
endif
|
||||||
COMMON_SETUP_CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
|
COMMON_SETUP_CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
|
||||||
COMMON_SETUP_SRCS += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
|
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
|
COMMON_SETUP_CFLAGS += -DUSE_LED
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,10 @@ endif
|
|||||||
# Sys-time
|
# Sys-time
|
||||||
#
|
#
|
||||||
$(TARGET).srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
|
$(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
|
# InterMCU & Commands
|
||||||
|
|||||||
@@ -54,6 +54,10 @@ ifneq ($(SYS_TIME_LED),none)
|
|||||||
endif
|
endif
|
||||||
COMMON_TEST_CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
|
COMMON_TEST_CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
|
||||||
COMMON_TEST_SRCS += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
|
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
|
COMMON_TEST_CFLAGS += -DUSE_LED
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user