From patchwork Fri Apr 29 16:34:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 12326 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id DB88F5584; Fri, 29 Apr 2016 18:34:46 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 71BA02B85 for ; Fri, 29 Apr 2016 18:34:45 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 29 Apr 2016 09:34:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,552,1455004800"; d="scan'208";a="694384655" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 29 Apr 2016 09:34:27 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u3TGYQUE000312; Fri, 29 Apr 2016 17:34:26 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u3TGYQhS001122; Fri, 29 Apr 2016 17:34:26 +0100 Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u3TGYQi4001118; Fri, 29 Apr 2016 17:34:26 +0100 From: Ferruh Yigit To: dev@dpdk.org Cc: Ferruh Yigit Date: Fri, 29 Apr 2016 17:34:25 +0100 Message-Id: <1461947665-1086-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] mk: add rpath for applications 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add default library output folder to the library search folder. This is useful for development environment, in production environment DPDK libraries already should be in know locations. Patch removes requirement to set LD_LIBRARY_PATH variable when DPDK compiled as shared library. Signed-off-by: Ferruh Yigit --- mk/rte.app.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index c66e491..b8715ee 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -198,6 +198,10 @@ build: _postbuild exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) +LDFLAGS += --rpath=$(RTE_SDK_BIN)/lib +endif + ifeq ($(LINK_USING_CC),1) override EXTRA_LDFLAGS := $(call linkerprefix,$(EXTRA_LDFLAGS)) O_TO_EXE = $(CC) $(CFLAGS) $(LDFLAGS_$(@)) \