增加 LOCAL_SHARED_LIBRARIES 示例.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
a8dad09dcc
commit
a72dfb7728
|
@ -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}(大小端字节序),那么就要加到这个上面,如:
|
||||
|
|
Loading…
Reference in New Issue