【发布时间】:2009-12-18 06:45:15
【问题描述】:
我已经构建了 libshared.so 依赖于 libshared_dependent.so
现在,我正在编译使用 libshared.so 的 app.bin,现在在编译时 gcc 要我指定 -lshared_dependent否则,它会给出一些符号未找到的错误。
有什么方法可以在编译时我不需要指定 -lshared_dependent,我希望只指定 -lshared 有效?
【问题讨论】:
-
@Sateesh 它需要我更改很多很多的makefile。我已经更改了一个共享文件的依赖关系,现在我不想更改其他项目的 makefile。
-
但是为什么不想指定依赖库呢?
标签: gcc linker shared-libraries