aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJin Qian <jinqian@google.com>2017-07-12 13:29:38 -0700
committerTheodore Ts'o <tytso@mit.edu>2018-02-26 12:22:55 -0500
commitbee92ebe7fc453d2489b6906770caaeb5cc10264 (patch)
treee930be96fe518a66324604f28d3989e5578ca2a6 /contrib
parent99c4785d7d823e3eb9d03432db35c8b73ab9f66d (diff)
downloade2fsprogs-bee92ebe7fc453d2489b6906770caaeb5cc10264.tar.gz
AOSP: build static version of mke2fs and e2fsdroid for host
Statically link those two binaries for host build so that we can package them with fastboot without including other library files. Bug: 35219933 Change-Id: Ic4762ba5eda8ac61723a2c4137690d12a0aa57f2 From AOSP commit: 42297fb01aa2a49ead938c1d24868941a39fd434
Diffstat (limited to 'contrib')
-rw-r--r--contrib/android/Android.bp37
1 files changed, 28 insertions, 9 deletions
diff --git a/contrib/android/Android.bp b/contrib/android/Android.bp
index afa335e0..18d38501 100644
--- a/contrib/android/Android.bp
+++ b/contrib/android/Android.bp
@@ -18,15 +18,34 @@ cc_binary {
"hashmap.c",
],
cflags: ["-W", "-Wall"],
- shared_libs: [
- "libext2fs",
- "libext2_com_err",
- "libext2_misc",
- "libcutils",
- "libbase",
- "libselinux",
- "libcrypto",
- ],
+ target: {
+ host: {
+ static_libs: [
+ "libext2_com_err",
+ "libext2_misc",
+ "libext2fs",
+ "libsparse",
+ "libz",
+ "libcutils",
+ "libbase",
+ "libselinux",
+ "libcrypto",
+ "liblog",
+ ],
+ },
+ android: {
+ shared_libs: [
+ "libext2fs",
+ "libext2_com_err",
+ "libext2_misc",
+ "libcutils",
+ "libbase",
+ "libselinux",
+ "libcrypto",
+ ],
+ },
+ },
+ stl: "libc++_static",
}
//##########################################################################