From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id C4296C6FA for ; Fri, 31 Jul 2015 15:15:54 +0200 (CEST) Received: by wibxm9 with SMTP id xm9so33474226wib.0 for ; Fri, 31 Jul 2015 06:15:54 -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=GkroLkZmylEPPGV0rkYsB1uEkWSk86j3yuvFbggroCY=; b=TDAfrtpZH4DfN4jRGSOtyDO2ZFDuOwAuSZllQGu+eIwsioIQLGuuNF5Bc7sGWE2Cw4 tdL4hCruADsf1ohEo9j7S/yxxGOffGYoEkR/eOV8Ys+Dt9IW+b0PX8BDONbt/sV8bxcO 0Ad5xlPjPQ04xHrmRortMIz8lBso1ch981FLGMBuP6TM4tGtyBiZtY/EwE3px6eiJS4c wtXqzEZrjOV/QE4mO7bvnhKhVE5qYzVhefTYhmqXh6CbTGuM7H1fYgHs/61HJp4kxLzu dFooerY59JsS465Eauviyo9o1zybbsU+b/5I1qgqnjVSe+3BeD6V89g/tiLb7nYkp/rC A54w== X-Gm-Message-State: ALoCoQnYY5TNL6d+KqERuENl+Wb2d+Dxp+iSKJQWbtww85r5JY5z0ZfTKT8cypUlG80PX0lX9Xuo X-Received: by 10.194.175.10 with SMTP id bw10mr5819763wjc.13.1438348554440; Fri, 31 Jul 2015 06:15:54 -0700 (PDT) Received: from ping.vm.6wind.com (6wind.net2.nerim.net. [213.41.151.210]) by smtp.gmail.com with ESMTPSA id lm5sm4447988wic.22.2015.07.31.06.15.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 06:15:53 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Date: Fri, 31 Jul 2015 15:14:17 +0200 Message-Id: <1438348458-12291-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 v3 1/2] mk: use LDLIBS and EXTRA_LDFLAGS 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: Fri, 31 Jul 2015 13:15:55 -0000 Some .so libraries needs to be linked with external libraries. For that the LDLIBS and EXTRA_LDFLAGS variables 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: Update commit log. 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