From bbe011c583a239f749e8e6194b921682e4003db9 Mon Sep 17 00:00:00 2001 From: Frank Halasz Date: Wed, 18 Mar 2026 01:27:16 -0700 Subject: [PATCH] Take geminis suggestion on getting glibc version number in linux-common.mk --- bin/linux-common.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/linux-common.mk b/bin/linux-common.mk index 7a8afcf..3d56a0d 100644 --- a/bin/linux-common.mk +++ b/bin/linux-common.mk @@ -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