[OpenWrt-Devel] [PATCH packages 01/11] libs/pcre: add host variant of libpcre

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Nov 22 04:55:46 EST 2019


This is needed to build the host variant of libselinux.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 libs/pcre/Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/libs/pcre/Makefile b/libs/pcre/Makefile
index 720142332..29fda6749 100644
--- a/libs/pcre/Makefile
+++ b/libs/pcre/Makefile
@@ -51,6 +51,17 @@ define Package/libpcrecpp
   DEPENDS:=+libpcre $(CXX_DEPENDS)
 endef
 
+include $(INCLUDE_DIR)/host-build.mk
+
+HOST_CONFIGURE_ARGS += \
+	--enable-utf8 \
+	--enable-unicode-properties \
+	--enable-pcre16 \
+	--with-match-limit-recursion=16000 \
+	--enable-cpp
+
+$(eval $(call HostBuild))
+
 TARGET_CFLAGS += $(FPIC)
 
 CONFIGURE_ARGS += \
-- 
2.23.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list