From 8f34ad44daa5ef7ba266497816a2491d59a9cc56 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 14 May 2024 17:27:30 +0200 Subject: [PATCH] set up pkgconfig for cross SYSROOT --- App/tools/driver.makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/App/tools/driver.makefile b/App/tools/driver.makefile index 05712f4..cd952ba 100644 --- a/App/tools/driver.makefile +++ b/App/tools/driver.makefile @@ -509,6 +509,11 @@ else what:: @echo ${EPICSVERSION} ${T_A} +ifdef SYSROOT +export PKG_CONFIG_LIBDIR=$(wildcard $(SYSROOT:%=%/lib*/pkgconfig)) +export PKG_CONFIG_SYSROOT_DIR = $(SYSROOT) +endif + # Add sources for specific epics types (3.13 or 3.14) or architectures. ARCH_PARTS = ${T_A} $(subst -, ,${T_A}) ${OS_CLASS} VAR_EXTENSIONS = $(firstword $(subst ., ,${EPICSVERSION})) ${EPICS_BASETYPE} ${EPICSVERSION} ${ARCH_PARTS} ${ARCH_PARTS:%=${EPICS_BASETYPE}_%} ${ARCH_PARTS:%=${EPICSVERSION}_%}