summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-10 10:03:15 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-10 13:15:49 -0400
commit9f90d09fcf58269dc09bad90b360d46c374e56e9 (patch)
treea461f3475386bbe34d88e67db1d5bf099245cb88 /Makefile
parent170fd017a1e7d87d0d53502b8f407c9163aa2957 (diff)
downloadbfs-9f90d09fcf58269dc09bad90b360d46c374e56e9.tar.xz
build: Add optional libselinux dependency
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 326ee87..ed59126 100644
--- a/Makefile
+++ b/Makefile
@@ -143,6 +143,7 @@ export RELEASE_CFLAGS= -O3 -flto=auto
# $ make config USE_LIBURING=n USE_ONIGURUMA=y
USE_LIBACL ?=
USE_LIBCAP ?=
+USE_LIBSELINUX ?=
USE_LIBURING ?=
USE_ONIGURUMA ?=
@@ -167,6 +168,7 @@ _XLDLIBS := ${LDLIBS}
_XUSE_LIBACL := ${USE_LIBACL}
_XUSE_LIBCAP := ${USE_LIBCAP}
+_XUSE_LIBSELINUX := ${USE_LIBSELINUX}
_XUSE_LIBURING := ${USE_LIBURING}
_XUSE_ONIGURUMA := ${USE_ONIGURUMA}
@@ -197,6 +199,7 @@ export XLDLIBS=${_XLDLIBS}
export XUSE_LIBACL=${_XUSE_LIBACL}
export XUSE_LIBCAP=${_XUSE_LIBCAP}
+export XUSE_LIBSELINUX=${_XUSE_LIBSELINUX}
export XUSE_LIBURING=${_XUSE_LIBURING}
export XUSE_ONIGURUMA=${_XUSE_ONIGURUMA}
@@ -210,6 +213,7 @@ CONFIG := ${GEN}/config.mk
PKGS := \
${GEN}/libacl.mk \
${GEN}/libcap.mk \
+ ${GEN}/libselinux.mk \
${GEN}/liburing.mk \
${GEN}/oniguruma.mk
@@ -478,7 +482,7 @@ distcheck: ${DISTCHECKS}
DISTCHECK_CONFIG_asan := ASAN=y UBSAN=y
DISTCHECK_CONFIG_msan := MSAN=y UBSAN=y CC=clang
DISTCHECK_CONFIG_tsan := TSAN=y UBSAN=y CC=clang
-DISTCHECK_CONFIG_m32 := EXTRA_CFLAGS="-m32" PKG_CONFIG_PATH=/usr/lib32/pkgconfig USE_LIBURING=n
+DISTCHECK_CONFIG_m32 := EXTRA_CFLAGS="-m32" PKG_CONFIG_LIBDIR=/usr/lib32/pkgconfig USE_LIBURING=n
DISTCHECK_CONFIG_release := RELEASE=y
${DISTCHECKS}::