diff options
author | Daniel Mrzyglod <danielx.t.mrzyglod@intel.com> | 2016-03-22 13:51:02 +0100 |
---|---|---|
committer | Thomas Monjalon <thomas.monjalon@6wind.com> | 2016-03-22 20:46:53 +0100 |
commit | 281948b4753ee07d1eeb41e07642bd2907c2950f (patch) | |
tree | f37f691a876f10e9ef0049eb30df086881203a74 /examples | |
parent | 8bc6573fb3a0108bd636c2187713b07f57a3c0d9 (diff) | |
download | dpdk-281948b4753e.zip dpdk-281948b4753e.tar.gz dpdk-281948b4753e.tar.xz |
mk: fix missing librt dependencies
For GLIBC < 2.17 it is necessery to add -lrt for linker
from glibc > 2.17 The `clock_*' suite of functions (declared in <time.h>) is now
available directly in the main C library. This affect Ubuntu 12.04 in i686
and other older Linux Distros).
Fixes: 4758404a3084 ("mk: fix eal shared library dependencies")
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ptpclient/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/ptpclient/Makefile b/examples/ptpclient/Makefile index b77cf71..d241730 100644 --- a/examples/ptpclient/Makefile +++ b/examples/ptpclient/Makefile @@ -46,6 +46,7 @@ SRCS-y := ptpclient.c CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +LDLIBS += -lrt # workaround for a gcc bug with noreturn attribute # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 |