diff --git a/libc/Android.bp b/libc/Android.bp index 9e15b96d1..adeb9d3bc 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -1915,7 +1915,7 @@ cc_library_headers { // libstdc++.so and libstdc++.a. // ======================================================== -cc_library { +cc_defaults { defaults: ["libc_defaults"], include_dirs: ["bionic/libstdc++/include"], srcs: [ @@ -1923,13 +1923,12 @@ cc_library { "bionic/__cxa_pure_virtual.cpp", "bionic/new.cpp", ], - name: "libstdc++", + name: "libstdc++_defaults", static_ndk_lib: true, static_libs: ["libasync_safe"], apex_available: [ "//apex_available:platform", ], - vendor_available: true, static: { system_shared_libs: [], @@ -1967,6 +1966,17 @@ cc_library { }, } +cc_library { + name: "libstdc++", + defaults: ["libstdc++_defaults"], +} + +cc_library_shared { + name: "libstdc++_vendor", + defaults: ["libstdc++_defaults"], + vendor: true, +} + genrule { name: "libstdc++.arm.map", out: ["libstdc++.arm.map.txt"],