From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id 90187C356 for ; Wed, 29 Jul 2015 15:56:44 +0200 (CEST) Received: by wibxm9 with SMTP id xm9so27705162wib.1 for ; Wed, 29 Jul 2015 06:56:44 -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:subject:date:message-id; bh=NYzdNOsiMSxS5zQxEKrDeJqW3I3Ef6YccIybQQmT4WU=; b=YO6rMrMSVsYY/0cFZtMWj+8/ay1kkkukBUV4ZlOs+19QkEGPQngpmOSDHEBXtiswq8 oWbpkBjFg9zAI6KwKHQXHaMvgYHJzAUSEeRGCE5HU5aC/I4dyxgrN7ssywEnGjfhwrLG HA7UdcIizF48WZdU2VuHhSyEMjUKgU8VbRXLNwpo4p2jS0XS9uXwc2HMyUaYSG2m/UHz T6avDRuNWgz1nMJ8YZZLKxGKVTL9uLNd0mvvUCHVq6+d07b5LPbcZNv1E2wpRfoLQ8zX HM5UykDb7phP2K9o0aVZjlV7aqBqgcqo1g7p9vaw4+e8GeC3KNv/O47Xw5NBWtN2HuWW xCDw== X-Gm-Message-State: ALoCoQkJ5kpzv3kuFuk8Z32jepIYg7x9QwTjFyQ9AZ3EgVsciL3fq6uBjaYWmYUfjJn3lTehhYNB X-Received: by 10.180.12.148 with SMTP id y20mr5896762wib.80.1438178204365; Wed, 29 Jul 2015 06:56:44 -0700 (PDT) Received: from ping.vm.6wind.com (6wind.net2.nerim.net. [213.41.151.210]) by smtp.gmail.com with ESMTPSA id hd6sm24504169wib.19.2015.07.29.06.56.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 06:56:43 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Date: Wed, 29 Jul 2015 15:56:17 +0200 Message-Id: <1438178178-5062-1-git-send-email-nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH 1/2] mk: add LDLIBS variable when producing the .so 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: Wed, 29 Jul 2015 13:56:44 -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 --- 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..3a07603 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) $(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