作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何将共享库与 --as-needed
链接使用 Automake?当我尝试将标志添加到 LDFLAGS
时,我看到了libtool
如此称呼:
/bin/bash ../../libtool --mode=link ... -Wl,--as-needed ... dependencies
gcc -shared ... dependencies ... -Wl,--as-needed ...
最佳答案
您可以通过修改项目源中的 ltmain.sh 脚本来为您的项目修复该问题。您甚至可以将其添加为 autotools 引导的一部分,如下所示:
https://meego.gitorious.org/tracker/tracker/commit/cf2ca3414aeba146dceacc5ecd84765f4c08a06f
关于linker - 如何将共享库与 --as-needed 与 automake 链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6852414/
我是一名优秀的程序员,十分优秀!