Build standalone client using static STL.

Change-Id: I487c801a7d4c0cd85502738d934ff05de02414fa
Bug: 160400319
diff --git a/Android.bp b/Android.bp
index 26fd9df..a682da4 100644
--- a/Android.bp
+++ b/Android.bp
@@ -434,6 +434,7 @@
     "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
     "-DPERFETTO_ANDROID_ASYNC_SAFE_LOG",
   ],
+  stl: "libc++_static",
   version_script: "src/profiling/memory/heapprofd_client_api.map.txt",
 }
 
diff --git a/tools/gen_android_bp b/tools/gen_android_bp
index 680c02e..5e61182 100755
--- a/tools/gen_android_bp
+++ b/tools/gen_android_bp
@@ -180,6 +180,7 @@
     'heapprofd_standalone_client': [
         ('static_libs', {'libasync_safe'}),
         ('version_script', 'src/profiling/memory/heapprofd_client_api.map.txt'),
+        ('stl', 'libc++_static'),
     ],
     'perfetto_unittests': [
         ('data', set(enumerate_data_deps())),