Skip to content

Commit

Permalink
Merge #19113
Browse files Browse the repository at this point in the history
19113: boards/native: Drop backward compatibility code for glibc <= 2.17 r=maribu a=maribu

### Contribution description

Even Debian [oldstable is now at glibc 2.28](https://packages.debian.org/source/buster/glibc), 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`).

### Testing procedure

The CI will check if this breaks the `native` board.

### Issues/PRs references

None

Co-authored-by: Marian Buschsieweke <[email protected]>
  • Loading branch information
bors[bot] and maribu authored Jan 9, 2023
2 parents e2538a8 + 4acc9d9 commit 58d5847
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions boards/native/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58d5847

Please sign in to comment.