swig: enable pcre2 support (refs #20604)
authorMichael Heimpold <mhei@heimpold.de>
Tue, 14 Mar 2023 19:54:59 +0000 (20:54 +0100)
committerMichael Heimpold <mhei@heimpold.de>
Wed, 15 Mar 2023 06:32:29 +0000 (07:32 +0100)
Now since pcre2 provides a host build, let's use it.
This is required for e.g. gensio package to provide
python bindings.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
utils/swig/Makefile

index 03378e196bc935fea768aaf9aa2e231299893d1c..ecd128f52f4413bcc491437a0df29c43a5e8360b 100644 (file)
@@ -20,6 +20,7 @@ PKG_LICENSE_FILES:=LICENSE
 
 PKG_HOST_ONLY:=1
 HOST_BUILD_PARALLEL:=1
+HOST_BUILD_DEPENDS:=pcre2/host
 
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
@@ -33,7 +34,7 @@ define Package/swig
 endef
 
 HOST_CONFIGURE_ARGS += \
-       --without-pcre
+       --with-pcre
 
 define Package/swig/description
   tool that generates bindings for various languages