]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/trace-cmd: add optional support for audit
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 20 Feb 2016 22:52:22 +0000 (23:52 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 21 Feb 2016 13:39:02 +0000 (14:39 +0100)
When audit was compiled before, trace-cmd will use it as optional
dependency:

$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/trace-cmd | grep NEEDED | sort
 0x0000000000000001 (NEEDED)             Shared library: [ld64-uClibc.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libaudit.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.1]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/trace-cmd/trace-cmd.mk

index 839e7ee3e8060637fab5b7e6e87d9fc1114849e1..2348155cb8e596c5aebc1bcc384757c5bf84285e 100644 (file)
@@ -13,6 +13,10 @@ TRACE_CMD_LICENSE_FILES = COPYING COPYING.LIB
 
 TRACE_CMD_DEPENDENCIES = host-pkgconf
 
+ifeq ($(BR2_PACKAGE_AUDIT),y)
+TRACE_CMD_DEPENDENCIES += audit
+endif
+
 ifeq ($(BR2_PACKAGE_PYTHON),y)
 TRACE_CMD_DEPENDENCIES += python host-swig
 TRACE_CMD_MAKE_OPTS = PYTHON_VERS=python