Merge "Fix unpack_archive() to remove ._* files"
diff --git a/build/core/ndk-common.sh b/build/core/ndk-common.sh
index 974f934..77cca66 100644
--- a/build/core/ndk-common.sh
+++ b/build/core/ndk-common.sh
@@ -272,6 +272,7 @@
# reporting anomoly here.
if [ "$HOST_OS" = darwin ] ; then
if ! echo __LP64__ | (CCOPTS= gcc -E - 2>/dev/null) | grep -q __LP64__ ; then
+ # or if gcc -dM -E - < /dev/null | grep -q __LP64__; then
HOST_ARCH=x86_64
fi
fi
@@ -708,6 +709,8 @@
else
run tar j$TARFLAGS "$ARCHIVE" -C $DIR
fi
+ # remove ._* files by MacOSX to preserve resource forks we don't need
+ find $DIR -name "\._*" -exec rm {} \;
;;
*)
panic "Cannot unpack archive with unknown extension: $ARCHIVE"