Skip to content

Commit

Permalink
cpu/native/periph_timer: add missing -lrt to linker flags
Browse files Browse the repository at this point in the history
This fixes #20009 (comment)
  • Loading branch information
maribu committed Aug 17, 2024
1 parent 4c55f92 commit 29a00be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpu/native/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29a00be

Please sign in to comment.