summaryrefslogtreecommitdiffstats
path: root/libtar/Android.mk
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-09-05 21:53:36 +0200
committerGerrit Code Review <gerrit@198.50.184.117>2013-09-05 21:53:36 +0200
commit8807a1ead605b54d86ba96466aee648fcd189ab4 (patch)
tree6b7cde9b953529948a725a606078818731db69fc /libtar/Android.mk
parentExtract file_contexts from zips if it exists (diff)
parentlibtar: store SELinux file context in tar archives (diff)
downloadandroid_bootable_recovery-8807a1ead605b54d86ba96466aee648fcd189ab4.tar
android_bootable_recovery-8807a1ead605b54d86ba96466aee648fcd189ab4.tar.gz
android_bootable_recovery-8807a1ead605b54d86ba96466aee648fcd189ab4.tar.bz2
android_bootable_recovery-8807a1ead605b54d86ba96466aee648fcd189ab4.tar.lz
android_bootable_recovery-8807a1ead605b54d86ba96466aee648fcd189ab4.tar.xz
android_bootable_recovery-8807a1ead605b54d86ba96466aee648fcd189ab4.tar.zst
android_bootable_recovery-8807a1ead605b54d86ba96466aee648fcd189ab4.zip
Diffstat (limited to 'libtar/Android.mk')
-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)