diff --git a/platform/build/rules/global b/platform/build/rules/global index dc413300c..9c1a70cc7 100644 --- a/platform/build/rules/global +++ b/platform/build/rules/global @@ -234,14 +234,14 @@ LIBPREFIX = lib endif ifeq ($(LIBPATH),$(POCO_BASE)/$(LIBDIR)) -LD_LIBRARY_PATH = $(LIBPATH) +SYS_LD_LIBRARY_PATH = $(POCO_HOST_LIBPATH) else -LD_LIBRARY_PATH = $(LIBPATH):$(POCO_BASE)/$(LIBDIR) +SYS_LD_LIBRARY_PATH = $(POCO_HOST_LIBPATH):$(POCO_BASE)/$(POCO_HOST_LIBDIR) endif ifeq ($(POCO_HOST_OSNAME),Darwin) -SET_LD_LIBRARY_PATH = DYLD_LIBRARY_PATH=$(LD_LIBRARY_PATH) +SET_LD_LIBRARY_PATH = DYLD_LIBRARY_PATH=$(SYS_LD_LIBRARY_PATH):${DYLD_LIBRARY_PATH} else -SET_LD_LIBRARY_PATH = LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) +SET_LD_LIBRARY_PATH = LD_LIBRARY_PATH=$(SYS_LD_LIBRARY_PATH):${LD_LIBRARY_PATH} endif #