sorry, ld --help | grep ': supported targets:.* elf' <pre> ld: supported targets: elf64-x86-64 elf32-i386 elf32-x86-64 a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big elf64-littleaarch64 elf64-bigaarch64 elf32-littleaarch64 elf32-bigaarch64 elf32-littlearm elf32-bigarm elf64-alpha ecoff-littlealpha elf32-hppa-linux elf32-hppa elf64-hppa-linux elf64-hppa elf64-ia64-little elf64-ia64-big pei-ia64 elf32-m68k a.out-m68k-linux elf32-tradbigmips elf32-tradlittlemips ecoff-bigmips ecoff-littlemips elf32-ntradbigmips elf64-tradbigmips elf32-ntradlittlemips elf64-tradlittlemips elf32-powerpc aixcoff-rs6000 elf32-powerpcle ppcboot elf64-powerpc elf64-powerpcle aixcoff64-rs6000 aix5coff64-rs6000 elf32-s390 elf64-s390 elf32-sh-linux elf32-shbig-linux elf32-sparc a.out-sparc-linux elf64-sparc a.out-sunos-big xcoff-powermac mach-o-be mach-o-le mach-o-fat pef pef-xlib sym elf32-spu pe-x86-64 pe-bigobj-x86-64 pe-i386 plugin srec symbolsrec verilog tekhex binary ihex </pre> it returns true...so "-Wl,-rpath -Wl,/usr/lib64" is set