From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mk: fix eal shared library dependencies -lrt Date: Tue, 22 Mar 2016 09:55:05 +0100 Message-ID: <2532380.h4kKuHkruB@xps13> References: <1458634142-10084-1-git-send-email-danielx.t.mrzyglod@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Daniel Mrzyglod Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 4781F2BD7 for ; Tue, 22 Mar 2016 09:56:46 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id p65so153166501wmp.0 for ; Tue, 22 Mar 2016 01:56:46 -0700 (PDT) In-Reply-To: <1458634142-10084-1-git-send-email-danielx.t.mrzyglod@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-03-22 09:09, Daniel Mrzyglod: > For GLIBC < 2.17 it is necessery to add -lrt for linker > from glibc > 2.17 The `clock_*' suite of functions (declared in ) is now > available directly in the main C library. This affect Ubuntu 12.04 in i686 > and other older Linux Distros). [...] > --- a/app/test/Makefile > +++ b/app/test/Makefile > @@ -114,6 +114,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += test_cmdline_string.c > SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += test_cmdline_lib.c > > ifeq ($(CONFIG_RTE_LIBRTE_SCHED),y) > +LDFLAGS += -lrt Why are you adding it only for librte_sched? Is it needed by librte_sched or by some functions testing librte_sched?