diff --git a/require-ess/tools/driver.makefile b/require-ess/tools/driver.makefile index 41e9739a1c9f6055e119d8c4632f69b8d9ea889b..246e2b93b61f51dea5dcbc483cfd1210ff6836c3 100644 --- a/require-ess/tools/driver.makefile +++ b/require-ess/tools/driver.makefile @@ -687,6 +687,12 @@ DBDFILES += $(patsubst %.gt,%.dbd,$(notdir $(filter %.gt,${SRCS}))) SNCALL=$(shell ls -dv $(E3_SITEMODS_PATH)/sequencer/$(call FETCH_BUILD_NUMBER,$(E3_SITEMODS_PATH),sequencer)/bin/$(EPICS_HOST_ARCH) 2> /dev/null) SNC=$(lastword $(SNCALL))/snc +ifneq (,$(strip $(VLIBS))) +$(info >>>> VLIBS! $(USR_LDFLAGS_$(T_A))) +USR_LDFLAGS_$(T_A) += $(foreach l,$(VLIBS),-L$(dir $(l))) +USR_LDFLAGS_$(T_A) += -Wl,-rpath,"\$$ORIGIN/vendor" +$(info >>>> VLIBS! $(USR_LDFLAGS_$(T_A))) +endif ifneq ($(strip ${DBDFILES}),) MODULEDBD=${PRJ}.dbd