mk: fix static link with glibc < 2.17
authorThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 18 Jul 2016 09:33:52 +0000 (11:33 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 21 Jul 2016 08:21:55 +0000 (10:21 +0200)
commit2f6414f4baf1d34e1c1a08d039ad0e51aead5277
treeec393c6b254784f808f56c6bcb406b2f46756cfb
parent608487f3fc96704271c624d0f3fe9d7fb2187aea
mk: fix static link with glibc < 2.17

There is an error when linking static EAL library with an application:

eal_alarm.c:(.text+0xd7): undefined reference to `clock_gettime'
eal_alarm.c:(.text+0x20f): undefined reference to `clock_gettime'
eal_timer.c:(.text+0x108): undefined reference to `clock_gettime'
eal_timer.c:(.text+0x146): undefined reference to `clock_gettime'

The function clock_gettime() is in librt for old glibc.

Fixes: 281948b4753e ("mk: fix missing librt dependencies")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Tested-by: Yongjie Gu <yongjiex.gu@intel.com>
mk/rte.app.mk