From 4a50ceb0436f17a658b48fc03b8d72fb97522847 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Tue, 22 Oct 2019 11:53:03 -0700 Subject: [PATCH] Makefile: back-port _FILE_OFFSET_BITS=64 and _LARGEFILE64_SOURCE to Makefile Upstream commit 71dd77fd4bf7 ("libbpf: use LFS (_FILE_OFFSET_BITS) instead of direct mmap2 syscall") added _FILE_OFFSET_BITS=64 and _LARGEFILE64_SOURCE CFLAGS. Back-port them to Github's mirror to avoid compilation problems on ARM. Signed-off-by: Andrii Nakryiko --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 0b999fc..ad67c81 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,7 +18,7 @@ endif SHARED_CFLAGS += -fPIC -fvisibility=hidden -DSHARED CFLAGS ?= -g -O2 -Werror -Wall -ALL_CFLAGS += $(CFLAGS) +ALL_CFLAGS += $(CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ALL_LDFLAGS += $(LDFLAGS) ifdef NO_PKG_CONFIG ALL_LDFLAGS += -lelf