Skip to content

Commit

Permalink
mk: add build directory to library search path
Browse files Browse the repository at this point in the history
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 <ferruh.yigit@intel.com>
  • Loading branch information
Ferruh Yigit authored and Thomas Monjalon committed May 18, 2016
1 parent 4a7e462 commit 8919f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mk/rte.app.mk
Expand Up @@ -187,6 +187,10 @@ LDLIBS += $(_LDLIBS-y) $(CPU_LDLIBS) $(EXTRA_LDLIBS)
LDLIBS := $(shell echo $(LDLIBS) | \
awk '{for (i = 1; i <= NF; i++) { if (!seen[$$i]++) print $$i }}')

ifeq ($(RTE_DEVEL_BUILD)$(CONFIG_RTE_BUILD_SHARED_LIB),yy)
LDFLAGS += -rpath=$(RTE_SDK_BIN)/lib
endif

.PHONY: all
all: install

Expand Down
1 change: 0 additions & 1 deletion scripts/test-null.sh
Expand Up @@ -36,7 +36,6 @@ build=${1:-build}
coremask=${2:-3} # default using cores 0 and 1

if grep -q SHARED_LIB=y $build/.config; then
export LD_LIBRARY_PATH=$build/lib:$LD_LIBRARY_PATH
pmd='-d librte_pmd_null.so'
fi

Expand Down

0 comments on commit 8919f73

Please sign in to comment.