File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,9 @@ iptables_find_version() {
154
154
155
155
compiler_presence_test () {
156
156
echo -n " Check for working gcc: "
157
- gcc -v > /dev/null 2>&1
157
+ $CC -v > /dev/null 2>&1
158
158
if [ $? = 0 ]; then
159
- echo Yes
159
+ echo Yes " ( $CC ) "
160
160
else
161
161
echo No
162
162
@@ -197,7 +197,7 @@ compile_libitp_test() {
197
197
echo "
198
198
#define __EXPORTED_HEADERS__
199
199
#include <$* >" > test.c
200
- gcc -c test.c $FLAGS > /dev/null 2>&1
200
+ $CC -c test.c $FLAGS > /dev/null 2>&1
201
201
RET=$?
202
202
if [ $RET = 0 ]; then
203
203
echo Yes $MSG ;
@@ -593,6 +593,7 @@ kernel_check_consistency
593
593
kernel_check_config
594
594
kernel_check_features
595
595
596
+ CC=${CC:- gcc}
596
597
test " $IPTBIN " || IPTBIN=` which iptables`
597
598
598
599
iptables_find_version # IPTVER
You can’t perform that action at this time.
0 commit comments