想把SDK相关的功能抽象出一个库,供 app 调用。 这样app相关代码编译后与库链接,生成最终的elf可执行文件。
方法:
如:-Wl,--whole-archive xx.a -Wl,--no-whole-archive