1diff --git a/Android.bp b/Android.bp
2index 7676cd3ef0..dc4e9c8115 100644
3--- a/Android.bp
4+++ b/Android.bp
5@@ -10,8 +10,11 @@ cc_library {
6         "-D_FORTIFY_SOURCE=1",
7         "-DSKIA_IMPLEMENTATION=1",
8         "-DATRACE_TAG=ATRACE_TAG_VIEW",
9+        CFLAGS_FOR_BENCH_SUITE
10     ],
11
12+    ldflags: [LDFLAGS_FOR_BENCH_SUITE],
13+
14     export_include_dirs: [
15         "include/android/",
16         "include/c/",
17@@ -861,7 +864,9 @@ cc_test {
18     cflags: [
19         "-Wno-unused-parameter",
20         "-Wno-unused-variable",
21+        CFLAGS_FOR_BENCH_SUITE
22     ],
23+    ldflags:[LDFLAGS_FOR_BENCH_SUITE],
24
25     local_include_dirs: [
26         "experimental/svg/model/",
27@@ -1640,7 +1645,9 @@ cc_test {
28     cflags: [
29         "-Wno-unused-parameter",
30         "-Wno-unused-variable",
31+        CFLAGS_FOR_BENCH_SUITE
32     ],
33+    ldflags:[LDFLAGS_FOR_BENCH_SUITE],
34
35     local_include_dirs: [
36         "bench/",
37