OSDN Git Service

Statically link libc++ for prebuilts
authorDmitriy Ivanov <dimitry@google.com>
Wed, 22 Apr 2015 17:43:12 +0000 (10:43 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Wed, 22 Apr 2015 17:43:12 +0000 (10:43 -0700)
 Statically link libc++ to relocation_packer in
 order to make it work from prebuilts

Bug: http://b/18051137
Change-Id: I933ed6a0e48780a26b261069eb6a293432824fe7

tools/relocation_packer/Android.mk

index 99a39c0..eabe0da 100644 (file)
@@ -46,6 +46,9 @@ LOCAL_CPP_EXTENSION := .cc
 
 LOCAL_SRC_FILES := src/main.cc
 LOCAL_STATIC_LIBRARIES := lib_relocation_packer libelf
+
+# Statically linking libc++ to make it work from prebuilts
+LOCAL_CXX_STL := libc++_static
 LOCAL_C_INCLUDES := external/elfutils/src/libelf libnativehelper/include
 
 LOCAL_MODULE := relocation_packer