File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 10
10
: " ${CRYPTO:= no} "
11
11
: " ${SMB:= no} "
12
12
: " ${TCPDUMP_TAINTED:= no} "
13
+ : " ${MAKE_BIN:= make} "
13
14
14
15
. ./build_common.sh
15
16
# Install directory prefix
71
72
-DCMAKE_INSTALL_PREFIX=" $PREFIX " ..
72
73
fi
73
74
fi
74
- run_after_echo make -s clean
75
+ run_after_echo " $MAKE_BIN " -s clean
75
76
if [ " $CMAKE " = no ]; then
76
- run_after_echo make -s ${CFLAGS: +CFLAGS=" $CFLAGS " }
77
+ run_after_echo " $MAKE_BIN " -s ${CFLAGS: +CFLAGS=" $CFLAGS " }
77
78
else
78
79
# The "-s" flag is a no-op and CFLAGS is set using -DEXTRA_CFLAGS above.
79
- run_after_echo make
80
+ run_after_echo " $MAKE_BIN "
80
81
fi
81
- run_after_echo make install
82
+ run_after_echo " $MAKE_BIN " install
82
83
print_so_deps " $TCPDUMP_BIN "
83
84
run_after_echo " $TCPDUMP_BIN " -h
84
85
# The "-D" flag depends on HAVE_PCAP_FINDALLDEVS and it would not be difficult
@@ -98,10 +99,10 @@ if [ "$CIRRUS_CI" = true ]; then
98
99
" $TCPDUMP_BIN " -L
99
100
fi
100
101
if [ " $BUILD_LIBPCAP " = yes ]; then
101
- run_after_echo make check
102
+ run_after_echo " $MAKE_BIN " check
102
103
fi
103
104
if [ " $CMAKE " = no ]; then
104
- run_after_echo make releasetar
105
+ run_after_echo " $MAKE_BIN " releasetar
105
106
fi
106
107
if [ " $CIRRUS_CI " = true ]; then
107
108
run_after_echo sudo \
Original file line number Diff line number Diff line change 19
19
# not warning-free because of the OS, the compiler or whatever other factor
20
20
# that the scripts can detect both in and out of CI.
21
21
: " ${TCPDUMP_TAINTED:= no} "
22
+ # Some OSes have native make without parallel jobs support and sometimes have
23
+ # GNU Make available as "gmake".
24
+ : " ${MAKE_BIN:= make} "
22
25
23
26
. ./build_common.sh
24
27
print_sysinfo
@@ -31,6 +34,7 @@ if [ -z "$PREFIX" ]; then
31
34
fi
32
35
COUNT=0
33
36
export TCPDUMP_TAINTED
37
+ export MAKE_BIN
34
38
35
39
build_tcpdump () {
36
40
for CMAKE in $MATRIX_CMAKE ; do
@@ -49,7 +53,7 @@ build_tcpdump() {
49
53
if [ " $CMAKE " = yes ]; then
50
54
run_after_echo rm -rf build
51
55
else
52
- run_after_echo make distclean
56
+ run_after_echo " $MAKE_BIN " distclean
53
57
fi
54
58
run_after_echo rm -rf " $PREFIX " /bin/tcpdump*
55
59
run_after_echo git status -suall
@@ -87,7 +91,7 @@ for CC in $MATRIX_CC; do
87
91
echo_magenta ' Use system libpcap' >&2
88
92
purge_directory " $PREFIX "
89
93
if [ -d ../libpcap ]; then
90
- (cd ../libpcap; make distclean || echo ' (Ignoring the make error.)' )
94
+ (cd ../libpcap; " $MAKE_BIN " distclean || echo ' (Ignoring the make error.)' )
91
95
fi
92
96
build_tcpdump
93
97
fi
You can’t perform that action at this time.
0 commit comments