summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-02-04 12:27:48 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-02-21 16:37:09 -0500
commitdefde40088462873ef714344bdf859e91b6349fd (patch)
treee3e4bdae8bdba1ceb0b05461d53eba4dd2424536 /Makefile
parente5d5659884af4e2ebf9a788dd379825a470bd01d (diff)
downloadbfs-defde40088462873ef714344bdf859e91b6349fd.tar.xz
Enable Oniguruma by default
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 328b852..b73f00a 100644
--- a/Makefile
+++ b/Makefile
@@ -68,6 +68,15 @@ ASAN := $(filter asan,$(MAKECMDGOALS))
MSAN := $(filter msan,$(MAKECMDGOALS))
UBSAN := $(filter ubsan,$(MAKECMDGOALS))
+ifndef MSAN
+WITH_ONIGURUMA := y
+endif
+
+ifdef WITH_ONIGURUMA
+LOCAL_LDLIBS += -lonig
+LOCAL_CFLAGS += -DBFS_WITH_ONIGURUMA=1
+endif
+
ifeq ($(OS),Linux)
ifndef MSAN # These libraries are not built with msan
WITH_ACL := y
@@ -101,11 +110,6 @@ else # Linux
DISTCHECK_FLAGS := TEST_FLAGS="--verbose"
endif
-ifdef WITH_ONIGURUMA
-LOCAL_LDLIBS += -lonig
-LOCAL_CFLAGS += -DBFS_WITH_ONIGURUMA=1
-endif
-
ifeq ($(OS),NetBSD)
LOCAL_LDLIBS += -lutil
endif