From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 6CD272C07 for ; Mon, 18 Jul 2016 11:44:18 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id o80so108007244wme.1 for ; Mon, 18 Jul 2016 02:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=am3IGrezSEGXRDyugMHojKCTq0g2DfTT3UFMSzfPj0M=; b=AXHXeqhBEFgmvqtmXTLh/2rTqWjaphR6jPrQrBegciDhYOz+fdYxPN6a9GWEIug3QT /aZ7P2ncCRGOPRvcX64ld348ENsoR5z+W4nox154OHvl7pn6MTi1ngmdNGYSrR8dIXsr X4WgqcZRYpsyMSSz8rvPbze0gEzSE85LannEA8SQ6HM9VMyR2a0zZN5nrcec58Om7uGg X7uUMLk3s3Y8VDuGnK4R6akQsfpE0ugpvEU0ke+p3UlcsUbPwukxmllPTXeKA0yRBHee EZkpuptxGTRiic+aXVRi7nX8CGd65VG1ZOsMwAWY2JO8RA53k0lRDYOH6etrjkGS/+09 x2cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=am3IGrezSEGXRDyugMHojKCTq0g2DfTT3UFMSzfPj0M=; b=XQXzngFMSy9EEPH8c+tiLbRwVxTwEzuQepzewx/rh86KES8sOV9BtU3SCwJytjM7Ov xQxG2REdsnzWILey2oQhKLBow+t0KQB/NgoY4225jp57ugeMVOSkNxUoI8zJpTgfbd7A ljmlSxzgcvUwQHvUphrtwdi8n1Jpx1N0pRwxYMWuTDbvxYpIJdjn+83MyZCJm3yEImgI r1RFF5K887mxjKPovdrikNoBx9uTTqhNU+mgb1EVivnV1o1lDalDMV/VnsO8HjVf6hkF xC0Owv9TpeJ3YJnWbqGqAMXwGMbfHqcG/rISgy+CIcelMGVIo28aq5xwRzGHqwtVtWcm 8ctw== X-Gm-Message-State: ALyK8tKh4pgA6fMhfl1/7/ZEawtlzJpNFhgn+KBMyfRA63+U7J3kuHXdN/SG2d2iPF8g3LW7 X-Received: by 10.194.62.74 with SMTP id w10mr267583wjr.50.1468835058017; Mon, 18 Jul 2016 02:44:18 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id kj4sm279205wjb.12.2016.07.18.02.44.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jul 2016 02:44:17 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Mon, 18 Jul 2016 11:43:45 +0200 Message-Id: <1468835025-3333-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] mk: fix static link with glibc < 2.17 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2016 09:44:18 -0000 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 --- mk/rte.app.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 886dbdd..eb28e11 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -151,6 +151,7 @@ _LDLIBS-y += --no-whole-archive ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),n) # The static libraries do not know their dependencies. # So linking with static library requires explicit dependencies. +_LDLIBS-$(CONFIG_RTE_LIBRTE_EAL) += -lrt _LDLIBS-$(CONFIG_RTE_LIBRTE_SCHED) += -lm _LDLIBS-$(CONFIG_RTE_LIBRTE_SCHED) += -lrt _LDLIBS-$(CONFIG_RTE_LIBRTE_METER) += -lm -- 2.7.0