summaryrefslogtreecommitdiff
path: root/libstdc++/src/libstdc++.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-05-14 18:18:55 -0700
committerElliott Hughes <enh@google.com>2014-05-14 18:18:55 -0700
commit15b641a26731a7e42455c3ed22e1e9bdf31ea79c (patch)
treec06577c257be144af1d59f9f23e1f1117b22c3aa /libstdc++/src/libstdc++.cpp
parentbc7f8a791b4a510914fd5cac713415acb80fb806 (diff)
Move libstdc++ into libc.
The Android build system always links against libstdc++.so anyway. Having operator new and operator delete in a separate library means we can't use constructors and destructors on heap-allocated objects inside the C library, which is quite an unfortunate limitation. This will be cheaper too; on LP64 we can stop linking against the [now empty] libstdc++.so giving the dynamic linker one less library to worry about for every process. There's precedent too --- we already have no libpthread or librt. For now I'm leaving the include files where they are, and I'm generating a dummy libstdc++.so and libstdc++.a. We can come back and clean that up later if all goes well. Bug: 13367666 Change-Id: I6f3e27ea7c30d03d6394965d0400c9dc87fa83db
Diffstat (limited to 'libstdc++/src/libstdc++.cpp')
-rw-r--r--libstdc++/src/libstdc++.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++/src/libstdc++.cpp b/libstdc++/src/libstdc++.cpp
new file mode 100644
index 000000000..3676aa19f
--- /dev/null
+++ b/libstdc++/src/libstdc++.cpp
@@ -0,0 +1 @@
+extern "C" void __this_library_is_now_part_of_libc() {}