diff options
| author | 2010-05-06 17:33:45 -0700 | |
|---|---|---|
| committer | 2010-05-06 17:33:45 -0700 | |
| commit | ca48c88c3d5733c4405a2fc4f7d9bb7fbba3d43f (patch) | |
| tree | ba82e7825548f05c8ac87f75adebcf6bf6a92bf9 /libs/utils/String8.cpp | |
| parent | ad2f9ff786d83851c5aaccf0e8d49f50e58fb7dd (diff) | |
| parent | 8a8658a5de261c2da72d431940877bd054bc9837 (diff) | |
am 8a8658a5: Merge "Make static versions of libutils and libbinder." into froyo
Merge commit '8a8658a5de261c2da72d431940877bd054bc9837' into froyo-plus-aosp
* commit '8a8658a5de261c2da72d431940877bd054bc9837':
Make static versions of libutils and libbinder.
Diffstat (limited to 'libs/utils/String8.cpp')
| -rw-r--r-- | libs/utils/String8.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/utils/String8.cpp b/libs/utils/String8.cpp index 3a3483871134..636cd8342869 100644 --- a/libs/utils/String8.cpp +++ b/libs/utils/String8.cpp @@ -136,10 +136,11 @@ static inline char* getEmptyString() void initialize_string8() { -#ifdef LIBUTILS_NATIVE - // Bite me, Darwin! - gDarwinIsReallyAnnoying = gDarwinCantLoadAllObjects; -#endif + // HACK: This dummy dependency forces linking libutils Static.cpp, + // which is needed to initialize String8/String16 classes. + // These variables are named for Darwin, but are needed elsewhere too, + // including static linking on any platform. + gDarwinIsReallyAnnoying = gDarwinCantLoadAllObjects; SharedBuffer* buf = SharedBuffer::alloc(1); char* str = (char*)buf->data(); |