summaryrefslogtreecommitdiffstats
path: root/libtar/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libtar/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/libtar/Android.mk b/libtar/Android.mk
index b73a41f3f..7e0fafb51 100644
--- a/libtar/Android.mk
+++ b/libtar/Android.mk
@@ -11,5 +11,11 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH) \
external/zlib
LOCAL_SHARED_LIBRARIES += libz libc
+ifneq ($(wildcard external/libselinux/Android.mk),)
+ LOCAL_C_INCLUDES += external/libselinux/include
+ LOCAL_SHARED_LIBRARIES += libselinux
+ LOCAL_CFLAGS += -DHAVE_SELINUX
+endif
+
include $(BUILD_SHARED_LIBRARY)