On older systems -lrt is needed for clock_gettime(). Add it to
HOSTLOADLIBES of kdbus-workers so it builds fine on those systems.

Reported-by: Sasha Levin <sasha.le...@oracle.com>
Signed-off-by: David Herrmann <dh.herrm...@gmail.com>
---
Hi

This should fix the build-issues of the kdbus-examples on older systems where
clock_gettime() is not available in -lc, but requires -lrt.

This is based on gregkh/char-misc/kdbus, and available on:
  http://cgit.freedesktop.org/~dvdhrm/linux/log/?h=kdbus

Thanks
David

 samples/kdbus/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/samples/kdbus/Makefile b/samples/kdbus/Makefile
index d009025..eee9b9a 100644
--- a/samples/kdbus/Makefile
+++ b/samples/kdbus/Makefile
@@ -8,3 +8,4 @@ always := $(hostprogs-y)
 HOSTCFLAGS_kdbus-workers.o +=          \
        -I$(objtree)/usr/include/       \
        -I$(objtree)/include/uapi/
+HOSTLOADLIBES_kdbus-workers := -lrt
-- 
2.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to