Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Someone else in my group built LD for my team to use. How can I tell if it was built with --enable-gold?
检查符号链接,如果它链接/usr/bin/ld到或。其余的应该是显而易见的。ls -alld.goldld.bfd
/usr/bin/ld
ls -al
ld.gold
ld.bfd
注意:命名可能会略有不同,以上适用于 ArchLinux。在其他系统上ld.gold可能会被gold直接调用并且ld.bfd可以被调用ld。
gold
ld
您正在尝试确认 gcc 的配置方式。所以 gcc -v 可以解决问题。