Skip to content
Snippets Groups Projects
Commit a4528f3d authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

Link with -lrt if glibc < 2.17 for native on linux

parent 093ff718
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,15 @@ ifeq ($(shell uname -s),Darwin)
endif
endif
# backward compatability with glibc <= 2.17 for native
ifeq ($(CPU),native)
ifeq ($(shell uname -s),Linux)
ifeq ($(shell ldd --version | awk '/^ldd/{if ($$NF < 2.17) {print "yes"} else {print "no"} }'),yes)
LINKFLAGS += -lrt
endif
endif
endif
## make script for your project. Build RIOT-base here!
all: $(PROJBINDIR)/$(PROJECT).a
@echo "Building project $(PROJECT) for $(BOARD) w/ MCU $(MCU)."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment