链接库时,使用-rpath 将动态库的地址传递给ld。我的问题是,如果我在 LD_LIBRARY_PATH 中设置了地址,我的链接过程中还需要 -rpath 标志吗?
g++ linker-scripts
g++ ×1
linker-scripts ×1