AIX 5.3(ld-xlc)等效选项Linux(ld-gcc)-rpath
发布时间:2020-11-18 11:13:35 所属栏目:Linux 来源:互联网
导读:我的编译器:xlc版本10.1 环境:AIX5.3 链接器:ld 当我使用gcc(4.4.1)在Linux上工作时,我使用以下选项 -Wl,-rpath (-Wl表示链接器选项)它将一个目录添加到运行时库搜索路径中. 什么是xlc编译器的等价物? 或什么是链接器的-rpath等价物. 谢谢. 我的第一个答
我的编译器:xlc版本10.1
当我使用gcc(4.4.1)在Linux上工作时,我使用以下选项 -Wl,-rpath (-Wl表示链接器选项)它将一个目录添加到运行时库搜索路径中. 什么是xlc编译器的等价物? 或什么是链接器的-rpath等价物. 谢谢. 解决方法我的第一个答案是:该链接器的AIX链接器选项是-blibpath.(如果有任何帮助,对于Sun编译器,它是-R.以防万一!) 我现在编辑它以回应OP的评论:你是对的.实际上,阅读AIX链接器手册(man ld)看起来像-L是正确的选择! -LDirectory Adds Directory to the list of search directories used for finding libraries designated by the -l (lowercase letter L) flag. The list of directories,including the standard library directories,is also recorded in the output object file loader section for use by the system loader unless you use the -blibpath,-bnolibpath,or -bsvr4 option. You can repeat this flag. (编辑:哈尔滨站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Qt不会在Linux中的调试/发布文件夹中创建输出文件
- 如何在Linux / Unix中将多个文件从一个扩展名重命名为另一个
- Sed - An Introduction and Tutorial by Bruce Barnett
- linux – 在下一行中打印提示后面的bash脚本结果
- linux – 为什么SSHFS不让我查看挂载的目录?
- Linux内核:来自“open”系统调用的printk不起作用
- 电子邮件 – 什么是Curl SMTP命令行参数支持GMail TLS / ST
- 在Linux中安装Android Studio到/ opt(将1.9 GB/ Android/Sd
- LINUX教学:Linux dd、split、csplit命令
- Getting over the dangers of rm command in Linux---refer