summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authordata-man <dataman@tutanota.com>2022-01-24 07:34:59 +0500
committerdata-man <dataman@tutanota.com>2022-01-24 07:34:59 +0500
commit475bc25800451c76d9a721fb35628693758a15e0 (patch)
treeaa46e0fc0be368d98f1fc34853b70b1e6619eedb /Makefile
parent8199f5c1c599a39ba0a9c4ace0bacde95b4bb483 (diff)
downloadbfs-475bc25800451c76d9a721fb35628693758a15e0.tar.xz
Using Oniguruma library (optionally)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
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)),)