如何用gcc工具链确定选项?

时间:2012-05-11 00:49:54

标签: gcc toolchain

我有一个非常古老的gcc工具链,我想重新构建一个具有与旧配置选项完全相同的配置选项。有没有办法确定工具链配置,假设我只有旧工具链的二进制文件。

1 个答案:

答案 0 :(得分:3)

尝试“gcc -v”:

  

$ gcc -v

     

使用内置规格。目标:x86_64-linux-gnu已配置   with:../src / configure -v --with-pkgversion ='Ubuntu / Linaro   4.4.4-14ubuntu5.1'--with-bugurl = file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages = c,c ++,fortran,objc,obj-c ++ - -prefix = / usr --program-suffix = -4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir = / usr / lib --without -included-gettext --enable-threads = posix --with-gxx-include-dir = / usr / include / c ++ / 4.4 --libdir = / usr / lib --enable-nls --with-sysroot = / - -enable-clocale = gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32 = i686 --with-tune = generic --enable-checking = release - build = x86_64-linux-gnu --host = x86_64-linux-gnu --target = x86_64-linux-gnu线程模型:posix gcc版本4.4.5(Ubuntu / Linaro 4.4.4-14ubuntu5.1)