From 475bc25800451c76d9a721fb35628693758a15e0 Mon Sep 17 00:00:00 2001 From: data-man Date: Mon, 24 Jan 2022 07:34:59 +0500 Subject: Using Oniguruma library (optionally) --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 18a51d3..77de641 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,11 @@ ifeq ($(OS),Linux) LOCAL_LDFLAGS += -Wl,--as-needed LOCAL_LDLIBS += -lacl -lcap -lattr -lrt +ifdef USE_ONIGURUMA +LOCAL_LDLIBS += -lonig +LOCAL_CFLAGS += -DUSE_ONIGURUMA +endif + # These libraries are not built with msan, so disable them MSAN_CFLAGS += -DBFS_HAS_SYS_ACL=0 -DBFS_HAS_SYS_CAPABILITY=0 -DBFS_HAS_SYS_XATTR=0 @@ -82,6 +87,11 @@ endif ifeq ($(OS),NetBSD) LOCAL_LDLIBS += -lutil + +ifdef USE_ONIGURUMA +LOCAL_LDLIBS += -lonig +LOCAL_CFLAGS += -DUSE_ONIGURUMA +endif endif ifneq ($(filter asan,$(MAKECMDGOALS)),) -- cgit v1.2.3