Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get LD_LIBRARY_PATH from shell environment to use in make environment #41

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion platform/build/rules/global
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ ifndef LIBPREFIX
LIBPREFIX = lib
endif

SHELL_LD_LIBRARY_PATH := $(shell echo $(LD_LIBRARY_PATH))

ifeq ($(LIBPATH),$(POCO_BASE)/$(LIBDIR))
LD_LIBRARY_PATH = $(LIBPATH)
else
Expand All @@ -243,7 +245,7 @@ endif
ifeq ($(POCO_HOST_OSNAME),Darwin)
SET_LD_LIBRARY_PATH = DYLD_LIBRARY_PATH=$(LD_LIBRARY_PATH)
else
SET_LD_LIBRARY_PATH = LD_LIBRARY_PATH=$(LD_LIBRARY_PATH)
SET_LD_LIBRARY_PATH = LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(SHELL_LD_LIBRARY_PATH)
endif

#
Expand Down