From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 788DC68E8 for ; Sun, 26 Jun 2016 18:42:12 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id a66so84952901wme.0 for ; Sun, 26 Jun 2016 09:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=H7N1SSJmTGXjDaZl7KdrzfA/j7D5fAdvjcfQDgyh17U=; b=JvQLSEN9BzUSa1z72y/wHq0UOV176FWcgiRKH819HzGydn45JIKQnG/g4djTlokWOv IY+oHAQeOCSUcZqXYy+OHiUpVpqHEEQUP9Xa8PXjBCOqpxuuHin9q9XPkdhSGriqpbj0 cKvS83tXYCWgyTiHB1XAC6dsINZVM0m27Bi+F8courB0OS9HD+h0WUfmCKqSFaxdzXn7 3wV3a/c/amh0BrSJ690BLcZhkwR6uoHJbdgcltfvDdLBXm/z24PsaaLu2SFEem3UgWwi zkGh2HyjJcf/ubdVuajHIGoJR7UFuobNXRDZK28aq6vI0jZgFNRYo8gNjLk3YiVprIwU ACXw== 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=H7N1SSJmTGXjDaZl7KdrzfA/j7D5fAdvjcfQDgyh17U=; b=Zf1dJxEwQE0B5ogdnsV61J3QW9jTgHuI7XI0O6n3iPMVoA5sRK5qjdvVTvDDMeBs4i yf/nBc9lKDVxEClADCabiQAGYxpPw0z3nyRasPi0151WnE3xHZv1mHWU8huAAL5Tn19w jefjoelyG1vn0LwKZ2/wrK44a76GYZFEoQ0c80syQ/Bdl7oGmhoiZ/497MVnHEHQ48rS qClmiGQqVdiTTaVQms4IBDBOwhVANIZRuFT6kv0J2ifhkjTrTwie/B1zGxJy7KTbQI16 nNytF3zNtINmh5Li/OGi2CnivGnwyJOxLZKCcbAhgm8YZQqqlKiwPxstcpIomHYuIHuE Hi+g== X-Gm-Message-State: ALyK8tJXCZy9c0OFFuj3IHK0bcL280Ng+FxUiUGmy7QqOLrR4RjlcQJjesPRfK4edQCwgc03 X-Received: by 10.194.167.39 with SMTP id zl7mr12782242wjb.98.1466959332053; Sun, 26 Jun 2016 09:42:12 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id bh7sm7390424wjb.22.2016.06.26.09.42.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 09:42:11 -0700 (PDT) From: Thomas Monjalon To: Panu Matilainen Cc: dev@dpdk.org Date: Sun, 26 Jun 2016 18:42:00 +0200 Message-Id: <1466959325-9426-3-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1466959325-9426-1-git-send-email-thomas.monjalon@6wind.com> References: <1466959325-9426-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH v2 2/7] mk: fix external library link 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: Sun, 26 Jun 2016 16:42:12 -0000 When building an external library with rte.extlib.mk, the internal libraries were not found because the linker search path was the external library install directory (RTE_OUTPUT/lib). It is fixed by searching in the internal library install directory (RTE_SDK_BIN/lib). When building an internal library, RTE_SDK_BIN = RTE_OUTPUT. Fixes: c6417ce61f83 ("mk: add build-time library directory to linker path") Signed-off-by: Thomas Monjalon --- mk/rte.lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index d2523ee..924dfb5 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -93,7 +93,7 @@ O_TO_A_DO = @set -e; \ $(O_TO_A) && \ echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) -O_TO_S = $(LD) -L$(RTE_OUTPUT)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) \ +O_TO_S = $(LD) -L$(RTE_SDK_BIN)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) \ -shared $(OBJS-y) $(LDLIBS) -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 $(@)") -- 2.7.0