From 08a69400ed7aa6f0b3d522f012924f547f31e4bb Mon Sep 17 00:00:00 2001 From: Viorel Munteanu Date: Wed, 28 Aug 2024 18:07:24 +0300 Subject: [PATCH] sys-boot/refind: fix compilation on different locales Bug: https://bugs.gentoo.org/938580 Signed-off-by: Viorel Munteanu --- sys-boot/refind/refind-0.14.2-r2.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys-boot/refind/refind-0.14.2-r2.ebuild b/sys-boot/refind/refind-0.14.2-r2.ebuild index 5755a725f1bfe..cad032fc658b2 100644 --- a/sys-boot/refind/refind-0.14.2-r2.ebuild +++ b/sys-boot/refind/refind-0.14.2-r2.ebuild @@ -41,7 +41,7 @@ checktools() { # llvm-objcopy does not support EFI target, try to use binutils objcopy or fail tc-export OBJCOPY OBJCOPY="${OBJCOPY/llvm-/}" - LANG=C LC_ALL=C "${OBJCOPY}" --help | grep -q '\ /dev/null | grep ^install: | cut -f2 -d' ')/include + local -x CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include elif tc-is-clang; then - local -x CPPINCLUDEDIR=$(LANG=C ${CC} -print-resource-dir 2> /dev/null)/include + local -x CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-resource-dir 2> /dev/null)/include local -x EXTRACFLAGS=-D__DEFINED_wchar_t fi