From a72dfb77284023226955047f384e59872589602f Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Mon, 12 Apr 2021 14:42:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20LOCAL=5FSHARED=5FLIBRARIES?= =?UTF-8?q?=20=E7=A4=BA=E4=BE=8B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../OperatingSystem/Android/Build/Android_mk_文件说明.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Software/Development/OperatingSystem/Android/Build/Android_mk_文件说明.md b/Software/Development/OperatingSystem/Android/Build/Android_mk_文件说明.md index 9c13806..852cd4c 100644 --- a/Software/Development/OperatingSystem/Android/Build/Android_mk_文件说明.md +++ b/Software/Development/OperatingSystem/Android/Build/Android_mk_文件说明.md @@ -31,6 +31,12 @@ LOCAL_LDLIBS += -lm –lz –lc -lcutils –lutils –llog LOCAL_SHARED_LIBRARIES 会生成依赖关系,当库不存在时会去编译这个库。 +如: + +```mk +LOCAL_SHARED_LIBRARIES := libutils libcutils +``` + ### 2.3.LOCAL_LDFLAGS LOCAL_LDFLAGS:这个编译变量传递给链接器一个一些额外的参数,比如想传递而外的库和库路径给 ld,或者传递给 ld linker 的一些链接参数,-On,-EL{B}(大小端字节序),那么就要加到这个上面,如: