diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-11-03 12:42:16 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-11-20 16:01:56 +0100 |
commit | 4e86f756bddca8db402502be47c0825e1e2aeb0d (patch) | |
tree | 2a33472e1ddac9eeaf41869592bc29c773f1d166 /CC/foreign/shell | |
parent | 779354b0f9e37c71d4c2b15b62d4d34d1e610a48 (diff) | |
download | rules-cc-4e86f756bddca8db402502be47c0825e1e2aeb0d.tar.gz |
foreign: Do not follow symlinks of tool paths
Diffstat (limited to 'CC/foreign/shell')
-rw-r--r-- | CC/foreign/shell/EXPRESSIONS | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CC/foreign/shell/EXPRESSIONS b/CC/foreign/shell/EXPRESSIONS index 2f05497..be6f797 100644 --- a/CC/foreign/shell/EXPRESSIONS +++ b/CC/foreign/shell/EXPRESSIONS @@ -269,11 +269,11 @@ , "export TOOLCHAIN=\"$(pwd)/toolchain\"" , "export LOCALBASE=\"$(pwd)/localbase\"" , "export DESTDIR=\"$(pwd)/install\"" - , "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})" - , "export CMAKE=$([ -x \"${CMAKE}\" ] && realpath ${CMAKE} || echo ${CMAKE})" + , "export CC=$([ -x \"${CC}\" ] && echo $(pwd)/${CC} || echo ${CC})" + , "export CXX=$([ -x \"${CXX}\" ] && echo $(pwd)/${CXX} || echo ${CXX})" + , "export AR=$([ -x \"${AR}\" ] && echo $(pwd)/${AR} || echo ${AR})" + , "export MAKE=$([ -x \"${MAKE}\" ] && echo $(pwd)/${MAKE} || echo ${MAKE})" + , "export CMAKE=$([ -x \"${CMAKE}\" ] && echo $(pwd)/${CMAKE} || echo ${CMAKE})" , { "type": "join" , "$1": [ "export PATH=\"$(./expand_exec TOOLCHAIN -- echo " |