Skip to content

Commit

Permalink
Merge pull request #20816 from maribu/cpu/native/periph_timer/linkflags
Browse files Browse the repository at this point in the history
cpu/native/periph_timer: add missing -lrt to linker flags
  • Loading branch information
chrysn authored Aug 17, 2024
2 parents e8abea2 + 29a00be commit d5bd9d7
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 d5bd9d7

Please sign in to comment.