LD Version Scripts
Android NDK LDFLAGS
libhello.map
VERS_1.1 {
global:test;
local:*;
};
Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:=hello
LOCAL_SRC_FILES:=main.cpp
LOCAL_CFLAGS += -Os -fvisibility=hidden
LOCAL_LDLIBS:= -llog
LOCAL_LDFLAGS:= -Wl,--version-script=$(LOCAL_PATH)/libhello.map
include $(BUILD_SHARED_LIBRARY)