【问题标题】:Using toolchain with proper vendor name使用具有正确供应商名称的工具链
【发布时间】:2017-12-09 21:23:58
【问题描述】:

我必须使用外部工具链来编译我提供的一些源代码。源代码没有附带配置文件,只有一个似乎是自动生成的 Makefile。

Makefile 引用了mips-linux-[cc|ar|ld|...],但我提供的工具链有不同的命名。

有什么方法可以告诉make 使用其他命名方案吗?

【问题讨论】:

  • make 只是遵循 makefile 中所写的内容,这可能是覆盖 make target=some-other-linux 之类的变量的情况,但如果您不发布至少一个摘录,则不可能说。
  • 在 Makefile 中应该有一个使用CC=mips-linux- 定义的变量,您可以通过将参数传递给像make CC=arm-linux-gnueabi- 这样的命令来覆盖它。

标签: gcc makefile toolchain


【解决方案1】:

答案是:CROSS=my-custom-toolchain-prefix

【讨论】:

    猜你喜欢
    • 2018-12-21
    • 1970-01-01
    • 1970-01-01
    • 2020-02-06
    • 2019-11-16
    • 2011-10-26
    • 1970-01-01
    • 2022-06-25
    • 1970-01-01
    相关资源
    最近更新 更多