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

Take geminis suggestion on getting glibc version number in linux-common.mk

This commit is contained in:
Frank Halasz
2026-03-18 01:27:16 -07:00
parent 54c81a3762
commit bbe011c583

View File

@@ -9,7 +9,10 @@ ifeq ($(USE_LIBBSD),T)
# Because we only need strlcat, strlcpy and friends from libbsd
# and they are included in glibc from 2.38 on.
GLIBC_VERSION := $(shell getconf GNU_LIBC_VERSION | sed 's/glibc //')
GLIBC_CHECK := $(shell echo "$(GLIBC_VERSION) >= 2.38" | bc)
GLIBC_CHECK := 0
ifneq ($(GLIBC_VERSION),)
GLIBC_CHECK := $(shell echo "$(GLIBC_VERSION) >= 2.38" | bc)
endif
ifneq ($(GLIBC_CHECK),1)
include linux-libbsd.mk
endif