Install rslib.bc into the device as a prebuilt target shared library.

Change-Id: Ice921ef851c143303f1cdf7fac4813e79c35ce94
diff --git a/Android.mk b/Android.mk
index 743d74b..01ebe16 100644
--- a/Android.mk
+++ b/Android.mk
@@ -45,14 +45,12 @@
 #
 # rslib.bc
 # ========================================================
-# include $(CLEAR_VARS)
-# local_target_dir := /system/lib
-# LOCAL_MODULE := rslib.bc
-# LOCAL_MODULE_TAGS := optional
-# LOCAL_MODULE_CLASS := SHARED_LIBRARIES
-# LOCAL_MODULE_PATH := $(local_target_dir)
-# LOCAL_SRC_FILES := $(LOCAL_MODULE)
-# include $(BUILD_PREBUILT)
+include $(CLEAR_VARS)
+LOCAL_MODULE := rslib.bc
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+LOCAL_SRC_FILES := lib/bcc/$(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
 
 #
 # Shared library for target
@@ -139,6 +137,9 @@
 LOCAL_CFLAGS += -DUSE_LIBBCC_SHA1SUM
 endif
 
+# This makes rslib.bc get installed if and only if the target libbcc.so is installed.
+LOCAL_REQUIRED_MODULES := rslib.bc
+
 # -Wl,--exclude-libs=ALL would hide most of the symbols in the shared library
 # and reduces the size of libbcc.so by about 800k.
 # As libLLVMBitReader:libLLVMCore:libLLVMSupport are used by pixelflinger2,