Build libselinux without ANDROID defined

This commit is contained in:
topjohnwu 2020-05-01 00:45:23 -07:00
parent 947e3b06b4
commit 4e349acb50

View File

@ -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 := \