Support make_f2fs.static for android flashstation
$ ldd make_f2fs.static
not a dynamic executable
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: If10866ba7fb30a1555885bdfe49d1e6e8b8d9a38
diff --git a/Android.bp b/Android.bp
index 27ef5b6..48cdcd9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -204,6 +204,19 @@
},
}
+cc_binary_host {
+ name: "make_f2fs.static",
+ defaults: [
+ "make_f2fs_defaults",
+ ],
+ target: {
+ host: {
+ ldflags: ["-static"],
+ },
+ },
+ stl: "libc++_static",
+}
+
cc_binary {
name: "fsck.f2fs",
defaults: [