我的编译器:XLC版本10.1 环境:AIX5.3 接头:LD

当我在Linux工作,具有的 GCC (4.4.1)1使用下面的选项

-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.
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top