mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/native: Drop backward compatibility code for glibc <= 2.17
Even Debian oldstable is now at glibc 2.28, so it is safe to assume that nobody needs this anymore. This also fixes garbage on the terminal on musl systems, where `ldd --version` is not supported (and output on `stderr` was not redirected to `/dev/null`).
This commit is contained in:
parent
ecf0ad31b6
commit
4acc9d9c89
@ -148,15 +148,6 @@ ifneq ($(shell gcc --version | head -1 | grep -E ' (4.6|4.7)'),)
|
||||
CFLAGS += -DHAVE_NO_BUILTIN_BSWAP16
|
||||
endif
|
||||
|
||||
# backward compatability with glibc <= 2.17 for native
|
||||
ifeq ($(CPU),native)
|
||||
ifeq ($(OS),Linux)
|
||||
ifeq ($(shell ldd --version | awk '/^ldd/{if ($$NF < 2.17) {print "yes"} else {print "no"} }'),yes)
|
||||
LINKFLAGS += -lrt
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# clumsy way to enable building native on osx:
|
||||
BUILDOSXNATIVE = 0
|
||||
ifeq ($(CPU),native)
|
||||
|
Loading…
Reference in New Issue
Block a user