Makefile中TARGET_ARCH变量的用途是什么 [英] What is purpose of TARGET_ARCH variable in Makefiles

查看:1630
本文介绍了Makefile中TARGET_ARCH变量的用途是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到在Gnu Make的隐式规则中,变量$(TARGET_ARCH)例如:

I have noticed that in Implicit Rules in Gnu Make is variable $(TARGET_ARCH) for example :

$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)

我认为此变量是交叉编译所必需的,但是我在Gnu Make文档中找不到有关此变量的任何信息.

I supposed that this variable is needed for cross compilation, but I haven't found any information about it in Gnu Make documentation.

推荐答案

我同意它可能用于交叉编译. 变量TARGET_ARCH没有默认值-最终用户可以在其中定义自己认为合适的变量.

I agree that it's probably meant for cross-compilation. The variable TARGET_ARCH has no default value - it's there for end-users to define as they see fit.

这篇关于Makefile中TARGET_ARCH变量的用途是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆