summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-08 23:04:05 (GMT)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-08 23:04:57 (GMT)
commit9b9fcd7062a5d39603fffb61b3e8e2c0b1932321 (patch)
tree9ad596343e35947e2496ea1004b865aadc34f85a
parent0018d7d6ba436a59875328fb3f372aff1888bff8 (diff)
downloadbuildroot-9b9fcd7062a5d39603fffb61b3e8e2c0b1932321.tar.gz
buildroot-9b9fcd7062a5d39603fffb61b3e8e2c0b1932321.tar.bz2
rpm: add optional dependencies on elfutils and binutils
Since these are detected by the configure script, we should explicit their dependencies in rpm.mk. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/rpm/rpm.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/rpm/rpm.mk b/package/rpm/rpm.mk
index accb625..2e829d7 100644
--- a/package/rpm/rpm.mk
+++ b/package/rpm/rpm.mk
@@ -65,6 +65,16 @@ else
RPM_CONF_OPTS += --without-selinux
endif
+# For the elfutils and binutils dependencies, there are no
+# configuration options to explicitly enable/disable them.
+ifeq ($(BR2_PACKAGE_ELFUTILS),y)
+RPM_DEPENDENCIES += elfutils
+endif
+
+ifeq ($(BR2_PACKAGE_BINUTILS),y)
+RPM_DEPENDENCIES += binutils
+endif
+
# RPM, when using NLS, requires GNU gettext's _nl_msg_cat_cntr, which is not
# provided in musl.
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)