From: Keith Mok Date: Tue, 21 Aug 2018 01:29:20 +0000 (-0700) Subject: systemd: add optional dependency on elfutils X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d609585ff7991ce720d05b475c90b004c560f4b;p=buildroot.git 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 Signed-off-by: Thomas Petazzoni --- 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