aboutsummaryrefslogtreecommitdiff
path: root/resize
diff options
context:
space:
mode:
authorDario Freni <dariofreni@google.com>2020-01-06 15:57:14 +0000
committerDario Freni <dariofreni@google.com>2020-01-10 11:31:15 +0000
commit2c767b86591c64cd7b84c5619e8d8b8a0afd557e (patch)
tree03ce5748758d3f1eff075c01cfb0bb332770e44e /resize
parent570728a24fa1d6fe1155086cf87972b84b8cae30 (diff)
downloade2fsprogs-2c767b86591c64cd7b84c5619e8d8b8a0afd557e.tar.gz
Allow resize2fs to compile with BUILD_HOST_static
Bug: 144477678 Test: BUILD_HOST_static=1 m resize2fs; m resize2fs Change-Id: I0986deccfe496153e662dcc3cc2fb1ffb6973c21
Diffstat (limited to 'resize')
-rw-r--r--resize/Android.bp29
1 files changed, 22 insertions, 7 deletions
diff --git a/resize/Android.bp b/resize/Android.bp
index d55e24c2..399201c3 100644
--- a/resize/Android.bp
+++ b/resize/Android.bp
@@ -13,12 +13,27 @@ cc_binary {
"sim_progress.c",
"resource_track.c",
],
- shared_libs: [
- "libext2fs",
- "libext2_com_err",
- "libext2_e2p",
- "libext2_uuid",
- "libext2_blkid",
- ],
+ // Host binaries can be compiled statically to be re-used in other environments.
+ // For android binaries, we keep shared libraries to keep the binary size smaller.
+ target: {
+ host: {
+ static_libs: [
+ "libext2fs",
+ "libext2_com_err",
+ "libext2_e2p",
+ "libext2_uuid",
+ "libext2_blkid",
+ ],
+ },
+ android: {
+ shared_libs: [
+ "libext2fs",
+ "libext2_com_err",
+ "libext2_e2p",
+ "libext2_uuid",
+ "libext2_blkid",
+ ],
+ },
+ },
system_shared_libs: ["libc", "libdl"],
}