[Android/ARM64] linker64: added a variable to maintain the custom linker64
authorGeunsik Lim <geunsik.lim@samsung.com>
Mon, 4 Mar 2019 09:42:25 +0000 (18:42 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 6 Mar 2019 07:44:40 +0000 (16:44 +0900)
This commit is to specify a variable to maintain the custom linker64.
This build script handles how to run the NNstreamer-based 64bit application
on Android 32bit platform. If the tart device is based on Android 64bit platform,
We do not need to use the custom linker64 repeatedly on the device.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
jni/Android-app.mk

index 288ae83..999249c 100644 (file)
@@ -17,6 +17,7 @@ LOCAL_PATH := $(call my-dir)
 # target#> ./{your-test-app}
 
 NNSTREAMER_VERSION := 0.1.1
+CUSTOM_LINKER64    := -fPIE -pie -Wl,-dynamic-linker,/data/nnstreamer/libandroid/linker64
 
 
 # Do not specify "TARGET_ARCH_ABI" in this file. If you want to append additional architecture,
@@ -86,7 +87,7 @@ LOCAL_MODULE    := tensor_repo_dynamic_test
 LOCAL_CFLAGS    += -O0 -DVERSION=\"$(NNSTREAMER_VERSION)\"
 LOCAL_SRC_FILES += ../tests/nnstreamer_repo_dynamicity/tensor_repo_dynamic_test.c 
 LOCAL_CXXFLAGS  += -std=c++11
-LOCAL_LDFLAGS   := -fPIE -pie -Wl,-dynamic-linker,/data/nnstreamer/libandroid/linker64
+LOCAL_LDFLAGS   := $(CUSTOM_LINKER64)
 
 NNSTREAMER_GST_HOME    := ../gst/nnstreamer