Skip to content

Commit a10f1e8

Browse files
committed
kiss-system: add notion of optional commands
1 parent 35caebb commit a10f1e8

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

kiss-system/build

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,12 @@ cmds="
77
b3sum
88
99
strip
10-
strings
11-
size
1210
readelf
1311
ranlib
14-
objdump
15-
objcopy
1612
nm
1713
ld
18-
dwp
19-
c++filt
2014
as
2115
ar
22-
addr2line
2316
2417
yacc
2518
@@ -30,7 +23,6 @@ curl
3023
lex
3124
3225
cc
33-
c99
3426
c++
3527
cpp
3628
@@ -45,6 +37,20 @@ gzip
4537
xz
4638
"
4739

40+
opt_cmds="
41+
strings
42+
size
43+
objdump
44+
objcopy
45+
dwp
46+
c++filt
47+
addr2line
48+
49+
50+
c99
51+
"
52+
53+
4854
libs="
4955
libcurl.so
5056
libcurl.a
@@ -78,6 +84,12 @@ check_libs(){
7884
check_cmds
7985
check_libs
8086

87+
for cmd in $opt_cmds; do
88+
if ! command -v "$cmd"; then
89+
echo "WARNING: missing optional $cmd, some packages may have issues." >&2
90+
fi
91+
done
92+
8193
command_and_libs_realpath="$(
8294
{
8395
check_cmds

0 commit comments

Comments
 (0)