From 489cb5e538db3d694313b7f74445f3f6082bedf0 Mon Sep 17 00:00:00 2001 From: Simon Rose <simon.rose@ess.eu> Date: Thu, 11 Feb 2021 14:20:03 +0100 Subject: [PATCH] Auto-add correct linker flags --- require-ess/tools/driver.makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/require-ess/tools/driver.makefile b/require-ess/tools/driver.makefile index 41e9739a..246e2b93 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 -- GitLab