summaryrefslogtreecommitdiff
path: root/CC/foreign/cmake
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-07-31 18:02:02 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-08-25 17:09:28 +0200
commit1a7e204aea96f4c50b82e7b834a88c1feb1c3161 (patch)
tree3d31129f21685d66d21876a352f188d1235dcbb7 /CC/foreign/cmake
parent2150f96764a843ccd10d71e8ff32a631dc1fb9d2 (diff)
downloadrules-cc-1a7e204aea96f4c50b82e7b834a88c1feb1c3161.tar.gz
foreign: Do not use "/usr/bin/which"
... because it is not part of the coreutils and we cannot rely on it being available.
Diffstat (limited to 'CC/foreign/cmake')
-rw-r--r--CC/foreign/cmake/EXPRESSIONS2
1 files changed, 1 insertions, 1 deletions
diff --git a/CC/foreign/cmake/EXPRESSIONS b/CC/foreign/cmake/EXPRESSIONS
index 9db614f..362cca3 100644
--- a/CC/foreign/cmake/EXPRESSIONS
+++ b/CC/foreign/cmake/EXPRESSIONS
@@ -227,7 +227,7 @@
}
}
, [ "readonly CMAKE_SUBDIR=\"$1\""
- , "readonly CMAKE_AR=$(which $2)"
+ , "readonly CMAKE_AR=$(command -v $2)"
, "shift 2"
, "${ROOT}/expand_exec TMPDIR LOCALBASE CC CXX CFLAGS CXXFLAGS LDFLAGS AR -- cmake -S\"source/${CMAKE_SUBDIR}\" -Bbuild -DCMAKE_AR=${CMAKE_AR} -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_PREFIX_PATH=\"$LOCALBASE\" -DPKG_CONFIG_ARGN=--define-prefix --no-warn-unused-cli \"$@\" >configure.log 2>&1 || (cat configure.log && exit 1)"
]