Support make_f2fs.static for android flashstation am: 06a4db5b20 am: 8803867d83 am: 003ea1bd53
Original change: https://android-review.googlesource.com/c/platform/external/f2fs-tools/+/1874158
Change-Id: I455256a4521a4c81cbe078eab3e30f3f1006d5cb
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: [