[Buildroot] [git commit] package/pure-ftpd: add optional support for elfutils
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Feb 21 11:41:06 UTC 2016
commit: https://git.buildroot.net/buildroot/commit/?id=34c58907f69e425cd9d391bb28b83165a80b7d39
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
When elfutils was compiled before, pure-ftpd will use it as optional
dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/sbin/pure-ftpd | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libelf.so.1]
0x0000000000000001 (NEEDED) Shared library: [libcrypt.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.1]
The build system offers no option to en-/disable elfutils support,
check m4/getloadavg.m4, line 44.
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
package/pure-ftpd/pure-ftpd.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/pure-ftpd/pure-ftpd.mk b/package/pure-ftpd/pure-ftpd.mk
index aa65e9e..8df4c23 100644
--- a/package/pure-ftpd/pure-ftpd.mk
+++ b/package/pure-ftpd/pure-ftpd.mk
@@ -16,6 +16,10 @@ PURE_FTPD_CONF_OPTS = \
--with-puredb \
--with-rfc2640
+ifeq ($(BR2_PACKAGE_ELFUTILS),y)
+PURE_FTPD_DEPENDENCIES += elfutils
+endif
+
ifeq ($(BR2_PACKAGE_LIBCAP),y)
PURE_FTPD_CONF_OPTS += --with-capabilities
PURE_FTPD_DEPENDENCIES += libcap
More information about the buildroot
mailing list