Thread (40 messages) read the whole thread 40 messages, 9 authors, 2015-04-08

Re: [PATCH 13/14] kdbus: add walk-through user space example

From: David Herrmann <hidden>
Date: 2015-03-12 16:34:42
Also in: lkml

Hi

On Thu, Mar 12, 2015 at 3:52 PM, Sasha Levin [off-list ref] wrote:
On 03/09/2015 09:09 AM, Greg Kroah-Hartman wrote:
quoted
diff --git a/samples/kdbus/Makefile b/samples/kdbus/Makefile
new file mode 100644
index 000000000000..d009025369f4
--- /dev/null
+++ b/samples/kdbus/Makefile
@@ -0,0 +1,10 @@
+# kbuild trick to avoid linker error. Can be omitted if a module is built.
+obj- := dummy.o
+
+hostprogs-y += kdbus-workers
+
+always := $(hostprogs-y)
+
+HOSTCFLAGS_kdbus-workers.o +=                \
+     -I$(objtree)/usr/include/       \
+     -I$(objtree)/include/uapi/
        -lrt

For older glibcs, otherwise clock_gettime() isn't found on linking.
Right, thanks! Fixed in "[PATCH] samples/kdbus: add -lrt".

Thanks
David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help