mc: fix build with local libpcre2-dev package

Since pcre2 was introduced in mc, it doesn't build on host systems
where libpcre2-dev is installed locally.

Add a configure option to point to the sysroot, where mc should search
for pcre2.

Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
This commit is contained in:
Andreas Baierl 2023-09-28 08:49:22 +02:00
parent 5c64b9cca3
commit ea50137c90

View File

@ -34,6 +34,7 @@ PKG_CONFIGURE_OPTS_TARGET=" \
--enable-vfs-sftp \
--enable-vfs-tar \
--with-search-engine=pcre2 \
--with-pcre2=${SYSROOT_PREFIX}/usr \
--without-x"
pre_configure_target() {