如果没有 -R 选项,则在输出对象中记录且传递给运行时链接程序的库搜索路径取决于 -xarch 选项指定的目标体系结构指令(没有 -xarch 时,假定 -xarch=generic)。
值 |
缺省库搜索路径 |
---|---|
v9、v9a 或 v9b |
install-directory/SUNWspro/lib/v9 |
所有其他值 |
install-directory/SUNWspro/lib |
在缺省安装中,install-directory 是 /opt。
该选项会累积而不覆盖。
如果定义了环境变量 LD_RUN_PATH 且指定了 –R 选项,则扫描 –R 指定的路径而忽略 LD_RUN_PATH 指定的路径。
–norunpath 和《链接程序和库指南》。