aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuan Han <chuan.han.comm@gmail.com>2020-09-25 15:34:06 -0700
committerChuan Han <chuan.han.comm@gmail.com>2020-10-02 10:38:39 -0700
commit93a786b4d7be2d3cdf517b974a5f215b0daaac8f (patch)
tree75195e4c8e8b49c790f0b724677b78e8c5094050
parent072def4738f149a6e3f2f3884fae55690d6ad3a1 (diff)
build: fix build for debian testing
1. add libelf-dev to default deb deps 2. Also use libffi7 instead of libffi6 for debian-testing Type: fix Signed-off-by: Chuan Han <chuan.han.comm@gmail.com> Change-Id: I9f13955812877422ecb8aac3dd34c5828b9c4607
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5af0d5707e0..d4d39b381d7 100644
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,7 @@ DEB_DEPENDS += python3-venv # ensurepip
DEB_DEPENDS += python3-dev # needed for python3 -m pip install psutil
# python3.6 on 16.04 requires python36-dev
-LIBFFI=libffi6 # works on all but 20.04
+LIBFFI=libffi6 # works on all but 20.04 and debian-testing
ifeq ($(OS_VERSION_ID),18.04)
DEB_DEPENDS += python-dev python-all python-pip python-virtualenv
@@ -92,6 +92,8 @@ else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-10)
DEB_DEPENDS += libelf-dev # for libbpf (af_xdp)
else
DEB_DEPENDS += libssl-dev
+ DEB_DEPENDS += libelf-dev # for libbpf (af_xdp)
+ LIBFFI=libffi7
endif
DEB_DEPENDS += $(LIBFFI)