【问题标题】:How to tell a configure script to use my own toolchain如何告诉配置脚本使用我自己的工具链
【发布时间】:2019-06-19 11:12:09
【问题描述】:

我想为 xtensa lx106 架构编译一个program

此架构不会出现在 config.guessconfig.sub 中。因此,./configure --host xtensa 或类似操作会产生错误。

如何告诉 configure 使用安装在文件系统任意位置的工具链(gcc、ld 等)?

【问题讨论】:

    标签: makefile build autotools configure autoconf


    【解决方案1】:

    configure 命令行上传递CCLD 等变量通常会这样做:

    ./configure CC=x86_64-xtensa-linux-gnu-gcc LD=...
    

    或者你想使用的任何工具。见:

    https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Compilers-and-Options.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-30
      • 1970-01-01
      • 2012-04-03
      • 2023-04-01
      • 2021-04-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多