summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Mok <ek9852@gmail.com>2018-08-20 18:29:20 -0700
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-08-21 11:19:46 +0200
commit0d609585ff7991ce720d05b475c90b004c560f4b (patch)
tree9b62a3c2ebc61495250af820fc97e5eb86b29e8e
parent38de43412327b68de1943ead3fea512ec42be625 (diff)
downloadbuildroot-0d609585ff7991ce720d05b475c90b004c560f4b.tar.gz
buildroot-0d609585ff7991ce720d05b475c90b004c560f4b.zip
systemd: add optional dependency on elfutils
systemd can use elfutils when available, so this commit adds the detection of this library. Signed-off-by: Keith Mok <ek9852@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/systemd/systemd.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index d7031ed21d..4813496670 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -65,6 +65,13 @@ else
SYSTEMD_CONF_OPTS += -Daudit=false
endif
+ifeq ($(BR2_PACKAGE_ELFUTILS),y)
+SYSTEMD_DEPENDENCIES += elfutils
+SYSTEMD_CONF_OPTS += -Delfutils=true
+else
+SYSTEMD_CONF_OPTS += -Delfutils=false
+endif
+
# Both options can't be selected at the same time so prefer libidn2
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
SYSTEMD_DEPENDENCIES += libidn2
OpenPOWER on IntegriCloud