Messages in this thread Patch in this message | | | From | David Herrmann <> | Subject | [PATCH] samples/kdbus: add -lrt | Date | Thu, 12 Mar 2015 17:27:31 +0100 |
| |
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.levin@oracle.com> Signed-off-by: David Herrmann <dh.herrmann@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
| |