瀏覽代碼

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>
Thomas Petazzoni 8 年之前
父節點
當前提交
9b9fcd7062
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      package/rpm/rpm.mk

+ 10 - 0
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)