From 6094651fe7f5fe3fc93899011b8ef8dd3fd61a58 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 5 Jul 2023 09:45:04 +0200 Subject: foreign: Fix resolve abs path of build tools --- CC/foreign/make/EXPRESSIONS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CC/foreign/make') diff --git a/CC/foreign/make/EXPRESSIONS b/CC/foreign/make/EXPRESSIONS index bf72594..aeafbfc 100644 --- a/CC/foreign/make/EXPRESSIONS +++ b/CC/foreign/make/EXPRESSIONS @@ -248,6 +248,9 @@ , "export DESTDIR=\"$(pwd)/install\"" , "export TOOLCHAIN=\"$(pwd)/toolchain\"" , "export LOCALBASE=\"$(pwd)/localbase\"" + , "export CC=$([ -x \"${CC}\" ] && realpath ${CC} || echo ${CC})" + , "export CXX=$([ -x \"${CXX}\" ] && realpath ${CXX} || echo ${CXX})" + , "export AR=$([ -x \"${AR}\" ] && realpath ${AR} || echo ${AR})" , "export MAKE=$([ -x \"${MAKE}\" ] && realpath ${MAKE} || echo ${MAKE})" , { "type": "join" , "$1": -- cgit v1.2.3