增加 LOCAL_SHARED_LIBRARIES 示例.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2021-04-12 14:42:44 +08:00
parent a8dad09dcc
commit a72dfb7728
1 changed files with 6 additions and 0 deletions

View File

@ -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}(大小端字节序),那么就要加到这个上面,如: