From 4e349acb500f7bf7c5a8af4949c7b5b198e4d81f Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 1 May 2020 00:45:23 -0700 Subject: [PATCH] Build libselinux without ANDROID defined --- native/jni/external/Android.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/jni/external/Android.mk b/native/jni/external/Android.mk index 87afe1a06..0f890ee61 100644 --- a/native/jni/external/Android.mk +++ b/native/jni/external/Android.mk @@ -248,12 +248,12 @@ include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LIBSELINUX := $(SE_PATH)/libselinux/include LOCAL_MODULE:= libselinux -LOCAL_C_INCLUDES := $(LIBSELINUX) $(LIBPCRE2) +LOCAL_C_INCLUDES := $(LIBSELINUX) $(LIBPCRE2) $(LIBSEPOL) LOCAL_EXPORT_C_INCLUDES := $(LIBSELINUX) LOCAL_STATIC_LIBRARIES := libpcre2 LOCAL_CFLAGS := \ -Wno-implicit-function-declaration -Wno-int-conversion -Wno-unused-function \ - -D_GNU_SOURCE -DUSE_PCRE2 \ + -D_GNU_SOURCE -DUSE_PCRE2 -UANDROID \ -DNO_PERSISTENTLY_STORED_PATTERNS -DDISABLE_SETRANS -DDISABLE_BOOL \ -DNO_MEDIA_BACKEND -DNO_X_BACKEND -DNO_DB_BACKEND -DNO_ANDROID_BACKEND LOCAL_SRC_FILES := \