File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ ifeq ($(UNAME_M),aarch64)
169
169
-I ./kern/bpf/arm64
170
170
AUTOGENCMD = ls -al kern/bpf/arm64/vmlinux.h
171
171
IGNORE_LESS52 = -ignore '.*_less52\.o'
172
- CC = aarch64-linux-gnu-gcc
172
+ LIBPCAP_CC = clang
173
173
LIBPCAP_ARCH = aarch64-unknown-linux-gnu
174
174
else
175
175
# x86_64 default
179
179
BPFHEADER = -I ./kern \
180
180
-I ./kern/bpf/x86
181
181
AUTOGENCMD = test -f kern/bpf/x86/vmlinux.h || $(CMD_BPFTOOL) btf dump file /sys/kernel/btf/vmlinux format c > kern/bpf/x86/vmlinux.h
182
- CC = gcc
182
+ LIBPCAP_CC = clang
183
183
LIBPCAP_ARCH = x86_64-unknown-linux-gnu
184
184
endif
185
185
@@ -408,7 +408,7 @@ assets_nocore: \
408
408
409
409
$(TARGET_LIBPCAP ) :
410
410
cd lib/libpcap && \
411
- ./configure --disable-rdma --disable-shared --disable-usb \
411
+ CC= $( LIBPCAP_CC ) ./configure --disable-rdma --disable-shared --disable-usb \
412
412
--disable-netmap --disable-bluetooth --disable-dbus --without-libnl \
413
413
--without-dpdk --without-dag --without-septel --without-snf \
414
414
--without-turbocap --host=$(LIBPCAP_ARCH ) && \
You can’t perform that action at this time.
0 commit comments