From 29a00beaf12323fae1acb8497bb8e66b2a6a7843 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Sat, 17 Aug 2024 13:52:48 +0200 Subject: [PATCH] cpu/native/periph_timer: add missing -lrt to linker flags This fixes https://github.com/RIOT-OS/RIOT/pull/20009#issuecomment-2294803168 --- cpu/native/Makefile.include | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/native/Makefile.include b/cpu/native/Makefile.include index 1a2ba36a69fc..85811c332f93 100644 --- a/cpu/native/Makefile.include +++ b/cpu/native/Makefile.include @@ -7,6 +7,11 @@ ifneq (,$(filter periph_can,$(USEMODULE))) endif endif +ifneq (,$(filter periph_timer,$(USEMODULE))) + # using timer_settime requires -lrt + LINKFLAGS += -lrt +endif + TOOLCHAINS_SUPPORTED = gnu llvm afl # Platform triple as used by Rust