From a96bd61a2eb2ed88f66cec1a7d57fc38c7d0db69 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 19 May 2019 14:49:48 +0100 Subject: [PATCH] libbpf: Build out-of-tree --- debian/changelog | 1 + debian/rules.d/tools/lib/bpf/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index bcccd73e4..9485c1b83 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ linux (4.19.37-4) UNRELEASED; urgency=medium - Drop unnecessary changes from "libbpf: add SONAME to shared object" - libbpf: Use only 2 components in soversion, matching package name (Closes: #929187) + - libbpf: Build out-of-tree -- Ben Hutchings Sun, 19 May 2019 00:04:16 +0100 diff --git a/debian/rules.d/tools/lib/bpf/Makefile b/debian/rules.d/tools/lib/bpf/Makefile index 26e231d2c..bc454045d 100644 --- a/debian/rules.d/tools/lib/bpf/Makefile +++ b/debian/rules.d/tools/lib/bpf/Makefile @@ -5,7 +5,7 @@ DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) # Catch use of missing kernel APIs early CFLAGS += -Werror=implicit-function-declaration -MAKE_BPF := +$(MAKE) -C $(top_srcdir)/$(OUTDIR) +MAKE_BPF := +$(MAKE) -C $(top_srcdir)/$(OUTDIR) O=$(CURDIR) MAKE_BPF += prefix=/usr MAKE_BPF += libdir_relative=lib/$(DEB_HOST_MULTIARCH) MAKE_BPF += V=$(KBUILD_VERBOSE)