From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 6676AC654 for ; Thu, 30 Jul 2015 16:49:16 +0200 (CEST) Received: by wibud3 with SMTP id ud3so24347133wib.1 for ; Thu, 30 Jul 2015 07:49:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xzIEeGELOnnpwNk7AUM2d43jRrbQsldEwUc1uacF/CY=; b=JkcaQoZj5RPD+JU2cd76XZr50HZAiOUTvUpZBgKN0neQ2/zKf57rdyatseGoAZ78/V CiNLLckDLdATby9zHIOwaPn9Ybv7XVt48PIz4cYrnrQQhhFDpSX6cVSO3Re4vXmu5SBX aPL0rEaimsBjVlv9LUEMfqRnt6ViStlugOUn8kySaaphaNMwVfKDgKXR4O+NDrZIlXTL x4ymQoFPaXSfW78zW9jv/rLKd8TjMnWvP1+1DEAtR7+Fn7oUKfrrY9+x4Yd2eHPrh4Lg k3w5b0BrMDU4IHMXKFQoVP0J8NA5fmro8wNeVsVVsyg0962Y74fgkroKo/4W/m9CSyC+ qTLA== X-Gm-Message-State: ALoCoQmtrQVOEUbNiAr2V++WtXq32/deEYi1zAHcaBkZTe4V2AgUyQm1HXRdXolQMqsnLRcyPKPg X-Received: by 10.195.11.202 with SMTP id ek10mr91390503wjd.12.1438267756236; Thu, 30 Jul 2015 07:49:16 -0700 (PDT) Received: from ping.vm.6wind.com (6wind.net2.nerim.net. [213.41.151.210]) by smtp.gmail.com with ESMTPSA id c11sm30275570wib.1.2015.07.30.07.49.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 07:49:15 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Date: Thu, 30 Jul 2015 16:48:23 +0200 Message-Id: <1438267704-26414-1-git-send-email-nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438178178-5062-1-git-send-email-nelio.laranjeiro@6wind.com> References: <1438178178-5062-1-git-send-email-nelio.laranjeiro@6wind.com> Subject: [dpdk-dev] [PACTH v2 1/2] mk: use LDLIBS variable when building the shared object file 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: Thu, 30 Jul 2015 14:49:16 -0000 Some .so libraries needs to be linked with external libraries. For that the LDLIBS variable should be present on the link line when those .so files are created. PMD Makefile is responsible for filling the LDLIBS variable with the link to the external library it needs. Signed-off-by: Nelio Laranjeiro Acked-by: Olivier Matz --- Changelog: add missing EXTRA_LDFLAGS variable necessary to link with an external library when it is not installed on the system or located somewhere else. mk/rte.lib.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 9ff5cce..fcc8e20 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -81,7 +81,8 @@ O_TO_A_DO = @set -e; \ $(O_TO_A) && \ echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) -O_TO_S = $(LD) $(_CPU_LDFLAGS) -shared $(OBJS-y) -Wl,-soname,$(LIB) -o $(LIB) +O_TO_S = $(LD) $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) $(LDLIBS) -shared $(OBJS-y) \ + -Wl,-soname,$(LIB) -o $(LIB) O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight O_TO_S_DISP = $(if $(V),"$(O_TO_S_STR)"," LD $(@)") O_TO_S_DO = @set -e; \ -- 1.9.1