linkflags += -Wl

来源:互联网 发布:linux怎么解压war包 编辑:程序博客网 时间:2024/05/01 10:45
有a,b,c三个项目, 均生成so。依赖关系如下:

a => b => c

a 的makefile 文件中,需通过--rpath-link选项,告诉b所依赖的c在何位置。 否则b找不到c,  报链接错误。


MPC文件内容:

......

linkflags += -Wl,--rpath-link ../bin (指定b所依赖的c所在的位置)

......

原创粉丝点击