gcc

640阅读 0评论2015-03-06 himrpei
分类:LINUX

-Wl,            Pass comma-separated on to the linker

gcc -Wl,-rpath,/home/arc/test,-rpath,/lib/,-rpath,/usr/lib/,-rpath,/usr/local/lib test.c

readelf -d a.out  可以看到效果
上一篇:bash 一个用法
下一篇:ldconfig