1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-20 00:17:51 +00:00

Fix sed script in linux-common.mk

This commit is contained in:
Frank Halasz
2026-03-18 00:50:14 -07:00
parent 034c52b86f
commit 7a286a8f1f

View File

@@ -8,7 +8,8 @@ ifeq ($(USE_LIBBSD),T)
# Use LIBBSD - but only if glibc < 2.38
# Because we only need strlcat, strlcpy and friends from libbsd
# and they are included in glibc from 2.38 on.
GLIBC_VERSION := $(shell ldd --version | head -1 | sed -e "s/^.*\([0-9]\.[0-9][0-9]\)/\\1/")
GLIBC_VERSION := $(shell ldd --version | head -1 | sed -e "s/^.* \([0-9]\.[0-9]\+\)/\\1/")
$(info xxxxxxx $(GLIBC_VERSION))
GLIBC_CHECK := $(shell echo "$(GLIBC_VERSION) >= 2.38" | bc)
ifneq ($(GLIBC_CHECK),1)
include linux-libbsd.mk