Skip to content

Commit 2baa3f9

Browse files
chenhengqianakryiko
authored andcommitted
examples/c: Fix Makefile for aarch64
On aarch64, C examples accidentally include arm/vmlinux.h and cause runtime error. Reorder the sed commands to avoid the issue. Signed-off-by: Hengqi Chen <[email protected]>
1 parent 6599571 commit 2baa3f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ LIBBLAZESYM_SRC := $(abspath ../../blazesym/)
1111
LIBBLAZESYM_OBJ := $(abspath $(OUTPUT)/libblazesym.a)
1212
LIBBLAZESYM_HEADER := $(abspath $(OUTPUT)/blazesym.h)
1313
ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' \
14+
| sed 's/arm.*/arm/' \
1415
| sed 's/aarch64/arm64/' \
1516
| sed 's/ppc64le/powerpc/' \
1617
| sed 's/mips.*/mips/' \
17-
| sed 's/arm.*/arm/' \
1818
| sed 's/riscv64/riscv/')
1919
VMLINUX := ../../vmlinux/$(ARCH)/vmlinux.h
2020
# Use our own libbpf API headers and Linux UAPI headers distributed with

0 commit comments

Comments
 (0)