set up pkgconfig for cross SYSROOT

This commit is contained in:
2024-05-14 17:27:30 +02:00
parent b21f690d39
commit 8f34ad44da
+5
View File
@@ -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}_%}