From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mk: fix static link with glibc < 2.17 Date: Mon, 25 Jul 2016 14:37:22 +0200 Message-ID: <12890652.mUoZe8QKBF@xps13> References: <1468835025-3333-1-git-send-email-thomas.monjalon@6wind.com> <6703957.6mWDc13pAY@xps13> <4837007523CC9A4B9414D20C13DE6E64136EC83D@IRSMSX102.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: "Gu, YongjieX" , dev@dpdk.org To: "Azarewicz, PiotrX T" Return-path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id F3A5A4AAD for ; Mon, 25 Jul 2016 14:37:23 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id i5so154623670wmg.0 for ; Mon, 25 Jul 2016 05:37:23 -0700 (PDT) In-Reply-To: <4837007523CC9A4B9414D20C13DE6E64136EC83D@IRSMSX102.ger.corp.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-07-25 11:13, Azarewicz, PiotrX T: > > The problem is that -lrt appears before -lrte_eal. > > The question is: where does it come from? > > It is even before _LDLIBS-y += -L$(RTE_SDK_BIN)/lib... mystery > > root cause: > commit c7cda4d8b4ea9cb0f209dda36882d225354b1db9 The error is seen after this commit, yes. But I would not say it is the root cause. The root cause is adding -lrt before other libs: 281948b4753e ("mk: fix missing librt dependencies") > and my workaround is: > /app/test/Makefile > > ifeq ($(CONFIG_RTE_LIBRTE_SCHED),y) > -LDLIBS += -lrt > SRCS-y += test_red.c > SRCS-y += test_sched.c > endif Yes it is what I've done in this patch: http://dpdk.org/patch/15008