Skip to content

Commit 87621ad

Browse files
committed
libpcap: Compile with clang
Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
1 parent a05bd8f commit 87621ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ ifeq ($(UNAME_M),aarch64)
169169
-I ./kern/bpf/arm64
170170
AUTOGENCMD = ls -al kern/bpf/arm64/vmlinux.h
171171
IGNORE_LESS52 = -ignore '.*_less52\.o'
172-
CC = aarch64-linux-gnu-gcc
172+
LIBPCAP_CC = clang
173173
LIBPCAP_ARCH = aarch64-unknown-linux-gnu
174174
else
175175
# x86_64 default
@@ -179,7 +179,7 @@ else
179179
BPFHEADER = -I ./kern \
180180
-I ./kern/bpf/x86
181181
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
183183
LIBPCAP_ARCH = x86_64-unknown-linux-gnu
184184
endif
185185

@@ -408,7 +408,7 @@ assets_nocore: \
408408

409409
$(TARGET_LIBPCAP):
410410
cd lib/libpcap && \
411-
./configure --disable-rdma --disable-shared --disable-usb \
411+
CC=$(LIBPCAP_CC) ./configure --disable-rdma --disable-shared --disable-usb \
412412
--disable-netmap --disable-bluetooth --disable-dbus --without-libnl \
413413
--without-dpdk --without-dag --without-septel --without-snf \
414414
--without-turbocap --host=$(LIBPCAP_ARCH) && \

0 commit comments

Comments
 (0)