Skip to content

Commit a5912d8

Browse files
authored
Add ext4File
Add math library to CFLAGS in Makefile
1 parent 1f8e5f7 commit a5912d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libbpf-tools/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LIBBPF_SRC := $(abspath ../src/cc/libbpf/src)
99
LIBBPF_OBJ := $(abspath $(OUTPUT)/libbpf.a)
1010
LIBBLAZESYM_SRC := $(abspath blazesym/target/release/libblazesym.a)
1111
INCLUDES := -I$(OUTPUT) -I../src/cc/libbpf/include/uapi
12-
CFLAGS := -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef
12+
CFLAGS := -g -O2 -lm -Wall -Wmissing-field-initializers -Werror -Werror=undef
1313
BPFCFLAGS := -g -O2 -Wall -Werror=undef
1414
BPFCFLAGS_softirqs := $(BPFCFLAGS) -mcpu=v3
1515
INSTALL ?= install
@@ -94,6 +94,7 @@ APPS = \
9494
tcptop \
9595
vfsstat \
9696
wakeuptime \
97+
ext4File \
9798
$(BZ_APPS) \
9899
#
99100

@@ -120,7 +121,6 @@ COMMON_OBJ = \
120121
ifeq ($(USE_BLAZESYM),1)
121122
COMMON_OBJ += \
122123
$(OUTPUT)/libblazesym.a \
123-
$(OUTPUT)/blazesym.h \
124124
#
125125
endif
126126

@@ -156,7 +156,7 @@ CFLAGS += -DUSE_BLAZESYM=1
156156
endif
157157

158158
ifeq ($(USE_BLAZESYM),1)
159-
LDFLAGS += $(OUTPUT)/libblazesym.a -lrt -lpthread -ldl
159+
LDFLAGS += -lrt -lpthread -ldl
160160
endif
161161

162162
.PHONY: clean

0 commit comments

Comments
 (0)