diff options
| author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-02-21 15:48:41 +0100 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-21 16:06:32 +0100 |
| commit | e0b2041d44c32c7c6b6730137b23e4b3208ee109 (patch) | |
| tree | 014e0ea3a3592a84247979930fd5e74de234aa5b /package/chrony | |
| parent | 4d04534d5aabfec8c5195c9e28c8530323ce7fd7 (diff) | |
| download | buildroot-e0b2041d44c32c7c6b6730137b23e4b3208ee109.tar.gz buildroot-e0b2041d44c32c7c6b6730137b23e4b3208ee109.zip | |
package/chrony: add optional support for libcap
When libcap was compiled before, chrony will use it as optional
dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/sbin/chronyd | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libm.so.1]
0x0000000000000001 (NEEDED) Shared library: [libcap.so.2]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.1]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/chrony')
| -rw-r--r-- | package/chrony/chrony.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/chrony/chrony.mk b/package/chrony/chrony.mk index 369d7eb314..59faa10d10 100644 --- a/package/chrony/chrony.mk +++ b/package/chrony/chrony.mk @@ -16,6 +16,12 @@ CHRONY_CONF_OPTS = \ --without-seccomp \ --without-tomcrypt +ifeq ($(BR2_PACKAGE_LIBCAP),y) +CHRONY_DEPENDENCIES += libcap +else +CHRONY_CONF_OPTS += --without-libcap +endif + ifeq ($(BR2_PACKAGE_LIBNSS),y) CHRONY_DEPENDENCIES += host-pkgconf libnss else |

